toml-f: enable shared builds on !isStatic platforms
This commit is contained in:
parent
71e47e8a23
commit
9250befb66
@ -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; {
|
||||
|
Loading…
Reference in New Issue
Block a user