mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
botan: fix macOS build
This commit is contained in:
parent
8dbefea714
commit
3baff95efd
@ -3,6 +3,7 @@
|
||||
, baseVersion, revision, sha256
|
||||
, extraConfigureFlags ? ""
|
||||
, postPatch ? null
|
||||
, darwin
|
||||
, ...
|
||||
}:
|
||||
|
||||
@ -20,7 +21,8 @@ stdenv.mkDerivation rec {
|
||||
};
|
||||
inherit postPatch;
|
||||
|
||||
buildInputs = [ python bzip2 zlib gmp openssl boost ];
|
||||
buildInputs = [ python bzip2 zlib gmp openssl boost ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||
|
||||
configurePhase = ''
|
||||
python configure.py --prefix=$out --with-bzip2 --with-zlib ${if openssl != null then "--with-openssl" else ""} ${extraConfigureFlags}${if stdenv.cc.isClang then " --cc=clang" else "" }
|
||||
|
Loading…
Reference in New Issue
Block a user