Crypto++: Fix on Darwin.

svn path=/nixpkgs/trunk/; revision=17196
This commit is contained in:
Ludovic Courtès
2009-09-16 14:35:38 +00:00
parent 26bf0b0150
commit bdc8e21d9e
2 changed files with 6 additions and 3 deletions

View File

@@ -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 = ''