Commit 19e7f777 authored by Kiskae's avatar Kiskae
Browse files

composefs: disable static+shared library building

parent 214c684c
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -35,7 +35,15 @@ stdenv.mkDerivation (finalAttrs: {
  strictDeps = true;
  outputs = [ "out" "lib" "dev" ];

  postPatch = lib.optionalString installExperimentalTools ''
  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"
    '';