summaryrefslogtreecommitdiffstats
path: root/pkgs/development/libraries/botan
diff options
context:
space:
mode:
authorMatthew Bauer <mjbauer95@gmail.com>2017-04-08 23:49:55 -0500
committerMatthew Bauer <mjbauer95@gmail.com>2017-04-08 23:49:55 -0500
commit3baff95efd0da6805cc82835a986ef142c3e4147 (patch)
tree0fe862596e9e6947dcec6555e694d9f8aff9bb6a /pkgs/development/libraries/botan
parent8dbefea7149d3c47924ac31f97189e7485e1e218 (diff)
botan: fix macOS build
Diffstat (limited to 'pkgs/development/libraries/botan')
-rw-r--r--pkgs/development/libraries/botan/generic.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/botan/generic.nix b/pkgs/development/libraries/botan/generic.nix
index 4a4ec5d9fe9c..b37fd6079b9e 100644
--- a/pkgs/development/libraries/botan/generic.nix
+++ b/pkgs/development/libraries/botan/generic.nix
@@ -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 "" }