Rewritten gettext-version stuff.

I've added listOfListsToAttrs to lib because I don't like to type "name =" and
"value =".

svn path=/nixpkgs/branches/stdenv-updates/; revision=9734
This commit is contained in:
Yury G. Kudryashov 2007-11-17 14:05:55 +00:00
parent ebc6bb79cd
commit 606b413f1f
6 changed files with 14 additions and 9 deletions

View File

@ -1,4 +1,5 @@
{stdenv, fetchurl}: stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "gettext-0.14.6";
src = fetchurl {
url = mirror://gnu/gettext/gettext-0.14.6.tar.gz;

View File

@ -1,4 +1,5 @@
{stdenv, fetchurl}: stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "gettext-0.15";
src = fetchurl {
url = mirror://gnu/gettext/gettext-0.15.tar.gz;

View File

@ -1,4 +1,5 @@
{stdenv, fetchurl}: stdenv.mkDerivation {
args: with args;
stdenv.mkDerivation {
name = "gettext-0.16.1";
src = fetchurl {
url = mirror://gnu/gettext/gettext-0.16.1.tar.gz;

View File

@ -1,7 +1,8 @@
args:
builtins.listToAttrs [
{ name = "recurseForDerivations"; value = true; }
{ name = "0.14.6"; value = (import ./0.14.6.nix) args; }
{ name = "0.15"; value = (import ./0.15.nix) args; }
{ name = "0.16.x"; value = (import ./0.16.x.nix) args; }
args.lib.listOfListsToAttrs [
[ "recurseForDerivations" true ]
[ "0.14.6" (import ./0.14.6.nix args) ]
[ "0.15" (import ./0.15.nix args) ]
[ "0.16.x" (import ./0.16.x.nix args) ]
[ "default" (import ./0.16.x.nix args) ]
]

View File

@ -8,6 +8,7 @@ let
in
rec {
listOfListsToAttrs = ll : builtins.listToAttrs (map (l : { name = (head l); value = (head (tail l)); }) ll);
innerSumArgs = f : x : y : (if y == null then (f x)
else (innerSumArgs f (x // y)));

View File

@ -1736,7 +1736,7 @@ rec {
gettext = getVersion "gettext" gettext_alts;
gettext_alts = import ../development/libraries/gettext {
inherit fetchurl stdenv;
inherit fetchurl stdenv lib;
};
gd = import ../development/libraries/gd {