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:
parent
214c684c83
commit
19e7f777db
|
@ -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 ]
|
||||
|
|
Loading…
Reference in a new issue