1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-17 19:21:04 +00:00

composefs: disable static+shared library building

This commit is contained in:
Kiskae 2024-11-02 16:14:20 +01:00
parent 214c684c83
commit 19e7f777db

View file

@ -35,10 +35,18 @@ stdenv.mkDerivation (finalAttrs: {
strictDeps = true;
outputs = [ "out" "lib" "dev" ];
postPatch = lib.optionalString installExperimentalTools ''
substituteInPlace tools/meson.build \
--replace-fail "install : false" "install : true"
'';
postPatch =
# 'both_libraries' as an install target always builds both versions.
# This results in double disk usage for normal builds and broken static builds,
# so we replace it with the regular library target.
''
substituteInPlace libcomposefs/meson.build \
--replace-fail "both_libraries" "library"
''
+ lib.optionalString installExperimentalTools ''
substituteInPlace tools/meson.build \
--replace-fail "install : false" "install : true"
'';
nativeBuildInputs = [ meson ninja go-md2man pkg-config ];
buildInputs = [ openssl ]