Rewritten gettext-version stuff.
I've added listOfListsToAttrs to lib because I don't like to type "name =" and "value =". svn path=/nixpkgs/trunk/; revision=10315
This commit is contained in:
parent
bc5974fb89
commit
0aef28a212
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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) ]
|
||||
]
|
||||
|
@ -9,6 +9,7 @@ let
|
||||
in
|
||||
|
||||
rec {
|
||||
listOfListsToAttrs = ll : builtins.listToAttrs (map (l : { name = (head l); value = (head (tail l)); }) ll);
|
||||
|
||||
|
||||
# Identity function.
|
||||
|
@ -1908,7 +1908,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user