diff --git a/pkgs/development/libraries/crypto++/default.nix b/pkgs/development/libraries/crypto++/default.nix index 2afc77f9777..a2cfcc45a4c 100644 --- a/pkgs/development/libraries/crypto++/default.nix +++ b/pkgs/development/libraries/crypto++/default.nix @@ -1,4 +1,4 @@ -{ fetchurl, stdenv, unzip }: +{ fetchurl, stdenv, unzip, libtool }: stdenv.mkDerivation rec { name = "crypto++-5.6.0"; @@ -12,7 +12,10 @@ stdenv.mkDerivation rec { ++ stdenv.lib.optional (builtins.currentSystem != "i686-cygwin") ./dll.patch; - buildInputs = [ unzip ]; + buildInputs = [ unzip ] + + # For some reason the makefile sets "AR = libtool" on Darwin. + ++ stdenv.lib.optional (builtins.currentSystem == "i686-darwin") libtool; # Unpack the thing in a subdirectory. unpackPhase = '' diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 611cdc5de12..549aed5fa92 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2982,7 +2982,7 @@ let }; cryptopp = import ../development/libraries/crypto++ { - inherit fetchurl stdenv unzip; + inherit fetchurl stdenv unzip libtool; }; cyrus_sasl = import ../development/libraries/cyrus-sasl {