summary refs log tree commit diff
path: root/pkgs/development/libraries/openssl
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-08-02 15:48:19 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2010-08-02 15:48:19 +0000
commit5417c720fdcb3a607205a6a6b465095e5421f5af (patch)
tree7c215a4605f2b2e8ab1d141a7d34d168f9077a01 /pkgs/development/libraries/openssl
parent9724fb271b4cdcd18b8ff9fc4d5ff934c328e2a9 (diff)
parentfd268b4852d39c18e604c584dd49a611dc795a9b (diff)
Merging from trunk.
I tried to fix some trivial conflicts.
I don't know if I merged well some more difficult conflicts on openssl/darwin_patch
or haskell-platform.


svn path=/nixpkgs/branches/stdenv-updates/; revision=22878
Diffstat (limited to 'pkgs/development/libraries/openssl')
-rw-r--r--pkgs/development/libraries/openssl/default.nix25
1 files changed, 15 insertions, 10 deletions
diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix
index 4e567cf6577b7..6dd579b98beeb 100644
--- a/pkgs/development/libraries/openssl/default.nix
+++ b/pkgs/development/libraries/openssl/default.nix
@@ -6,25 +6,30 @@ let
     stdenv.cross;
 in
 
-stdenv.mkDerivation ( rec {
-  name = "openssl-0.9.8n";
-  
+stdenv.mkDerivation rec {
+  name = "openssl-1.0.0a";
+
   src = fetchurl {
     url = "http://www.openssl.org/source/${name}.tar.gz";
-    sha256 = "008z1h09pa6dfxs4wgbqj5i1clw4v82b1waqvwanb1kb6wlbq6mh";
+    sha256 = "0qqgyzfb0alwx329z8bqybzamfl9j2maykykvq6zk3ibq0gvva8q";
   };
 
-  buildNativeInputs = [ perl ];
+  patches = stdenv.lib.optional stdenv.isDarwin ./darwin-arch.patch;
 
-  configureScript = "./config";
+  buildNativeInputs = [ perl ];
+  
+  # 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";
+  configureFlags = "shared --libdir=lib";
 
   crossAttrs = {
-    configurePhase = ''
+    preConfigure=''
       export cross=$crossSystem-
-      ./Configure --prefix=$out ${opensslCrossSystem} shared
     '';
+    configureFlags="--libdir=lib ${opensslCrossSystem} shared";
     buildPhase = ''
       make CC=$crossConfig-gcc \
         AR="$crossConfig-ar r" \
@@ -36,4 +41,4 @@ stdenv.mkDerivation ( rec {
     homepage = http://www.openssl.org/;
     description = "A cryptographic library that implements the SSL and TLS protocols";
   };
-} // (if stdenv.isDarwin then { patches = [./darwin-arch.patch]; } else {}) )
+}