From 4a6eb1183e4d7b7f8453ca9e9b6c7c168d1403c1 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sun, 25 Jul 2010 09:09:32 +0000 Subject: [PATCH] * On x86_64-darwin, "./config" misdetects the system as "darwin-i386-cc" (http://hydra.nixos.org/build/498076). So specify the system type explicitly. svn path=/nixpkgs/branches/x-updates/; revision=22726 --- pkgs/development/libraries/openssl/default.nix | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index f74eed27def..6dd579b98be 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -17,8 +17,11 @@ stdenv.mkDerivation rec { patches = stdenv.lib.optional stdenv.isDarwin ./darwin-arch.patch; buildNativeInputs = [ perl ]; - - configureScript = "./config"; + + # On x86_64-darwin, "./config" misdetects the system as + # "darwin-i386-cc". So specify the system type explicitly. + configureScript = + if stdenv.system == "x86_64-darwin" then "./Configure darwin64-x86_64-cc" else "./config"; configureFlags = "shared --libdir=lib";