Skip to content

Commit 19e7f77

Browse files
committed
composefs: disable static+shared library building
1 parent 214c684 commit 19e7f77

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

pkgs/by-name/co/composefs/package.nix

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,18 @@ stdenv.mkDerivation (finalAttrs: {
3535
strictDeps = true;
3636
outputs = [ "out" "lib" "dev" ];
3737

38-
postPatch = lib.optionalString installExperimentalTools ''
39-
substituteInPlace tools/meson.build \
40-
--replace-fail "install : false" "install : true"
41-
'';
38+
postPatch =
39+
# 'both_libraries' as an install target always builds both versions.
40+
# This results in double disk usage for normal builds and broken static builds,
41+
# so we replace it with the regular library target.
42+
''
43+
substituteInPlace libcomposefs/meson.build \
44+
--replace-fail "both_libraries" "library"
45+
''
46+
+ lib.optionalString installExperimentalTools ''
47+
substituteInPlace tools/meson.build \
48+
--replace-fail "install : false" "install : true"
49+
'';
4250

4351
nativeBuildInputs = [ meson ninja go-md2man pkg-config ];
4452
buildInputs = [ openssl ]

0 commit comments

Comments
 (0)