* Remove sumArgs and its few remaining uses. Idem for composedArgs.
svn path=/nixpkgs/trunk/; revision=18388
This commit is contained in:
parent
18a08aa008
commit
802fa4ba0b
@ -1,6 +1,6 @@
|
|||||||
args: with args;
|
args: with args;
|
||||||
let localDefs = builderDefs.passthru.function {
|
let localDefs = builderDefs.passthru.function {
|
||||||
buildInputs =[mesa (wxGTK null) libX11 xproto];
|
buildInputs =[mesa wxGTK libX11 xproto];
|
||||||
src =
|
src =
|
||||||
fetchurl {
|
fetchurl {
|
||||||
url = http://www.piettes.com/fallingsandgame/fsg-src-4.4.tar.gz;
|
url = http://www.piettes.com/fallingsandgame/fsg-src-4.4.tar.gz;
|
||||||
|
@ -8,7 +8,7 @@ stdenv.mkDerivation {
|
|||||||
sha256 = "1756y01rkvd3f1pkj88jqh83fqcfl2fy0c48mcq53pjzln9ycv8c";
|
sha256 = "1756y01rkvd3f1pkj88jqh83fqcfl2fy0c48mcq53pjzln9ycv8c";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [gtk glib pkgconfig mesa (wxGTK null) libX11 xproto];
|
buildInputs = [gtk glib pkgconfig mesa wxGTK libX11 xproto];
|
||||||
|
|
||||||
/*
|
/*
|
||||||
# One day Unicode will overcome?
|
# One day Unicode will overcome?
|
||||||
|
@ -9,23 +9,6 @@ with import ./strings.nix;
|
|||||||
|
|
||||||
rec {
|
rec {
|
||||||
|
|
||||||
|
|
||||||
# accumulates / merges all attr sets until null is fed.
|
|
||||||
# example: sumArgs id { a = 'a'; x = 'x'; } { y = 'y'; x = 'X'; } null
|
|
||||||
# result : { a = 'a'; x = 'X'; y = 'Y'; }
|
|
||||||
innerSumArgs = f : x : y : (if y == null then (f x)
|
|
||||||
else (innerSumArgs f (x // y)));
|
|
||||||
sumArgs = f : innerSumArgs f {};
|
|
||||||
|
|
||||||
# Advanced sumArgs version. Hm, twice as slow, I'm afraid.
|
|
||||||
# composedArgs id (x:x//{a="b";}) (x:x//{b=x.a + "c";}) null;
|
|
||||||
# {a="b" ; b="bc";};
|
|
||||||
innerComposedArgs = f : x : y : (if y==null then (f x)
|
|
||||||
else (if (builtins.isAttrs y) then
|
|
||||||
(innerComposedArgs f (x//y))
|
|
||||||
else (innerComposedArgs f (y x))));
|
|
||||||
composedArgs = f: innerComposedArgs f {};
|
|
||||||
|
|
||||||
defaultMergeArg = x : y: if builtins.isAttrs y then
|
defaultMergeArg = x : y: if builtins.isAttrs y then
|
||||||
y
|
y
|
||||||
else
|
else
|
||||||
|
@ -938,14 +938,6 @@ let
|
|||||||
inherit fetchurl stdenv;
|
inherit fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
|
||||||
hyppocampusFun = lib.sumArgs ( selectVersion ../tools/misc/hyppocampus "0.3rc1") {
|
|
||||||
inherit builderDefs stdenv fetchurl libdbi libdbiDrivers fuse
|
|
||||||
pkgconfig perl gettext dbus dbus_glib pcre libscd bison glib;
|
|
||||||
flex = flex2533;
|
|
||||||
};
|
|
||||||
*/
|
|
||||||
|
|
||||||
iasl = import ../development/compilers/iasl {
|
iasl = import ../development/compilers/iasl {
|
||||||
inherit fetchurl stdenv bison flex;
|
inherit fetchurl stdenv bison flex;
|
||||||
};
|
};
|
||||||
@ -4046,12 +4038,6 @@ let
|
|||||||
inherit fetchurl stdenv pkgconfig ncurses glib;
|
inherit fetchurl stdenv pkgconfig ncurses glib;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*libscdFun = lib.sumArgs (selectVersion ../development/libraries/libscd "0.4.2") {
|
|
||||||
inherit stdenv fetchurl builderDefs libextractor perl pkgconfig;
|
|
||||||
};
|
|
||||||
|
|
||||||
libscd = libscdFun null;*/
|
|
||||||
|
|
||||||
libsigcxx = import ../development/libraries/libsigcxx {
|
libsigcxx = import ../development/libraries/libsigcxx {
|
||||||
inherit fetchurl stdenv pkgconfig;
|
inherit fetchurl stdenv pkgconfig;
|
||||||
};
|
};
|
||||||
@ -4608,16 +4594,12 @@ let
|
|||||||
inherit (xlibs) libXinerama libSM libXxf86vm xf86vidmodeproto;
|
inherit (xlibs) libXinerama libSM libXxf86vm xf86vidmodeproto;
|
||||||
};
|
};
|
||||||
|
|
||||||
wxGTK28fun = lib.sumArgs (import ../development/libraries/wxGTK-2.8);
|
wxGTK28 = makeOverridable (import ../development/libraries/wxGTK-2.8) {
|
||||||
|
|
||||||
wxGTK28deps = wxGTK28fun {
|
|
||||||
inherit fetchurl stdenv pkgconfig mesa;
|
inherit fetchurl stdenv pkgconfig mesa;
|
||||||
inherit (gtkLibs216) gtk;
|
inherit (gtkLibs216) gtk;
|
||||||
inherit (xlibs) libXinerama libSM libXxf86vm xf86vidmodeproto;
|
inherit (xlibs) libXinerama libSM libXxf86vm xf86vidmodeproto;
|
||||||
};
|
};
|
||||||
|
|
||||||
wxGTK28 = wxGTK28deps null;
|
|
||||||
|
|
||||||
wtk = import ../development/libraries/wtk {
|
wtk = import ../development/libraries/wtk {
|
||||||
inherit fetchurl stdenv unzip xlibs;
|
inherit fetchurl stdenv unzip xlibs;
|
||||||
};
|
};
|
||||||
@ -7199,14 +7181,6 @@ let
|
|||||||
qt = qt3;
|
qt = qt3;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*kiwixBuilderFun = lib.sumArgs (import ../applications/misc/kiwixbuilder) {
|
|
||||||
inherit builderDefs;
|
|
||||||
inherit (gnome) glib;
|
|
||||||
zlib = zlibStatic;
|
|
||||||
};
|
|
||||||
|
|
||||||
kiwixBuilder = kiwixBuilderFun null;*/
|
|
||||||
|
|
||||||
konversation = import ../applications/networking/irc/konversation {
|
konversation = import ../applications/networking/irc/konversation {
|
||||||
inherit fetchurl stdenv perl arts kdelibs zlib libpng libjpeg expat;
|
inherit fetchurl stdenv perl arts kdelibs zlib libpng libjpeg expat;
|
||||||
inherit (xlibs) libX11 libXt libXext libXrender libXft;
|
inherit (xlibs) libX11 libXt libXext libXrender libXft;
|
||||||
@ -8064,12 +8038,12 @@ let
|
|||||||
inherit stdenv fetchurl pkgconfig mesa;
|
inherit stdenv fetchurl pkgconfig mesa;
|
||||||
inherit (gtkLibs) glib gtk;
|
inherit (gtkLibs) glib gtk;
|
||||||
inherit (xlibs) libX11 xproto;
|
inherit (xlibs) libX11 xproto;
|
||||||
wxGTK = wxGTK28deps {unicode = false;};
|
wxGTK = wxGTK28.override {unicode = false;};
|
||||||
};
|
};
|
||||||
|
|
||||||
fsgAltBuild = import ../games/fsg/alt-builder.nix {
|
fsgAltBuild = import ../games/fsg/alt-builder.nix {
|
||||||
inherit stdenv fetchurl mesa;
|
inherit stdenv fetchurl mesa;
|
||||||
wxGTK = wxGTK28deps {unicode = false;};
|
wxGTK = wxGTK28.override {unicode = false;};
|
||||||
inherit (xlibs) libX11 xproto;
|
inherit (xlibs) libX11 xproto;
|
||||||
inherit stringsWithDeps builderDefs;
|
inherit stringsWithDeps builderDefs;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user