openssl: avoid the need for a recursive expression

svn path=/nixpkgs/trunk/; revision=29426
This commit is contained in:
Peter Simons 2011-09-21 18:48:04 +00:00
parent 6fcd493d5f
commit d709ef5d30
2 changed files with 8 additions and 4 deletions

View File

@ -1,13 +1,15 @@
{ stdenv, fetchurl, perl }: { stdenv, fetchurl, perl }:
let let
name = "openssl-1.0.0e";
opensslCrossSystem = stdenv.lib.attrByPath [ "openssl" "system" ] opensslCrossSystem = stdenv.lib.attrByPath [ "openssl" "system" ]
(throw "openssl needs its platform name cross building" null) (throw "openssl needs its platform name cross building" null)
stdenv.cross; stdenv.cross;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation {
name = "openssl-1.0.0e"; inherit name;
src = fetchurl { src = fetchurl {
url = "http://www.openssl.org/source/${name}.tar.gz"; url = "http://www.openssl.org/source/${name}.tar.gz";

View File

@ -1,13 +1,15 @@
{ stdenv, fetchurl, perl }: { stdenv, fetchurl, perl }:
let let
name = "openssl-1.0.0d";
opensslCrossSystem = stdenv.lib.attrByPath [ "openssl" "system" ] opensslCrossSystem = stdenv.lib.attrByPath [ "openssl" "system" ]
(throw "openssl needs its platform name cross building" null) (throw "openssl needs its platform name cross building" null)
stdenv.cross; stdenv.cross;
in in
stdenv.mkDerivation rec { stdenv.mkDerivation {
name = "openssl-1.0.0d"; inherit name;
src = fetchurl { src = fetchurl {
url = "http://www.openssl.org/source/${name}.tar.gz"; url = "http://www.openssl.org/source/${name}.tar.gz";