diff options
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/botan/generic.nix')
-rw-r--r-- | nixpkgs/pkgs/development/libraries/botan/generic.nix | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/nixpkgs/pkgs/development/libraries/botan/generic.nix b/nixpkgs/pkgs/development/libraries/botan/generic.nix index 4d2cf7515c03..0369f603b8e1 100644 --- a/nixpkgs/pkgs/development/libraries/botan/generic.nix +++ b/nixpkgs/pkgs/development/libraries/botan/generic.nix @@ -1,10 +1,11 @@ -{ stdenv, fetchurl, python, bzip2, zlib, gmp, openssl, boost +{ lib, stdenv, fetchurl, python, bzip2, zlib, gmp, openssl, boost # Passed by version specific builders , baseVersion, revision, sha256 , 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; + ++ 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 "" } @@ -42,11 +43,11 @@ stdenv.mkDerivation rec { ln -s botan-*.pc botan.pc || true ''; - meta = with stdenv.lib; { + meta = with lib; { inherit version; description = "Cryptographic algorithms library"; maintainers = with maintainers; [ raskin ]; - platforms = ["x86_64-linux" "i686-linux" "x86_64-darwin"]; + platforms = platforms.unix; license = licenses.bsd2; }; passthru.updateInfo.downloadPage = "http://files.randombit.net/botan/"; |