mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
simple-dftd3: enable shared builds on !isStatic platforms
This commit is contained in:
parent
a3f4b8c7da
commit
6631798926
@ -26,10 +26,16 @@ stdenv.mkDerivation rec {
|
||||
|
||||
buildInputs = [ mctc-lib mstore toml-f blas ];
|
||||
|
||||
postInstall = ''
|
||||
substituteInPlace $out/lib/pkgconfig/s-dftd3.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;
|
||||
preCheck = ''
|
||||
|
Loading…
Reference in New Issue
Block a user