toml-f: enable shared builds on !isStatic platforms

This commit is contained in:
Phillip Seeber 2024-01-11 17:28:09 +01:00
parent 71e47e8a23
commit 9250befb66

View file

@ -21,11 +21,18 @@ stdenv.mkDerivation rec {
buildInputs = [ test-drive ];
postInstall = ''
substituteInPlace $out/lib/pkgconfig/${pname}.pc \
--replace "''${prefix}/" ""
outputs = [ "out" "dev" ];
# Fix the Pkg-Config files for doubled store paths
postPatch = ''
substituteInPlace config/template.pc \
--replace "\''${prefix}/" ""
'';
cmakeFlags = [
"-DBUILD_SHARED_LIBS=${if stdenv.hostPlatform.isStatic then "OFF" else "ON"}"
];
doCheck = true;
meta = with lib; {