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 }:
let
name = "openssl-1.0.0e";
opensslCrossSystem = stdenv.lib.attrByPath [ "openssl" "system" ]
(throw "openssl needs its platform name cross building" null)
stdenv.cross;
in
stdenv.mkDerivation rec {
name = "openssl-1.0.0e";
stdenv.mkDerivation {
inherit name;
src = fetchurl {
url = "http://www.openssl.org/source/${name}.tar.gz";

View File

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