botan: fix compilation on darwin
This commit is contained in:
committed by
Jonathan Ringer
parent
ea6ae87eed
commit
490a4b6ded
@@ -4,7 +4,8 @@
|
||||
, sourceExtension ? "tar.xz"
|
||||
, extraConfigureFlags ? ""
|
||||
, postPatch ? null
|
||||
, darwin
|
||||
, CoreServices
|
||||
, Security
|
||||
, ...
|
||||
}:
|
||||
|
||||
@@ -23,7 +24,7 @@ stdenv.mkDerivation rec {
|
||||
inherit postPatch;
|
||||
|
||||
buildInputs = [ python bzip2 zlib gmp openssl boost ]
|
||||
++ stdenv.lib.optional stdenv.isDarwin darwin.apple_sdk.frameworks.Security;
|
||||
++ stdenv.lib.optionals stdenv.isDarwin [ CoreServices 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 "" }
|
||||
|
||||
Reference in New Issue
Block a user