* Get rid of the `(import (__toPath ((toString
./JustNothing/.. )+"/"+args.version+".nix")))' hack, you can also just write `import (./path/to/pkg + "/${version}.nix)'. svn path=/nixpkgs/trunk/; revision=9792
This commit is contained in:
parent
d794ae6cbc
commit
c54b75c959
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,9 +0,0 @@
|
|||||||
let
|
|
||||||
realPath=y: (__toPath ((toString ./JustNothing/.. )+"/"+y.version+".nix"));
|
|
||||||
dispatch=(x: ((import (realPath x)) x));
|
|
||||||
in
|
|
||||||
args :
|
|
||||||
with args;
|
|
||||||
with builderDefs {src="";} null;
|
|
||||||
let eater=(lib.sumArgs dispatch args); in
|
|
||||||
eater
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,13 +1,14 @@
|
|||||||
args : with args;
|
args : with args;
|
||||||
rec
|
rec
|
||||||
{
|
{
|
||||||
bcop = import ./bcop args;
|
selectVersion = dir: import (dir + "/${args.version}.nix");
|
||||||
libcompizconfig = import ./libcompizconfig (args // {inherit bcop;});
|
bcop = selectVersion ./bcop args;
|
||||||
configBackendGConf = import ./config-backend (args // {inherit bcop libcompizconfig;});
|
libcompizconfig = selectVersion ./libcompizconfig (args // {inherit bcop;});
|
||||||
compizConfigPython = import ./compizconfig-python (args // {inherit libcompizconfig
|
configBackendGConf = selectVersion ./config-backend (args // {inherit bcop libcompizconfig;});
|
||||||
|
compizConfigPython = selectVersion ./compizconfig-python (args // {inherit libcompizconfig
|
||||||
bcop pyrex configBackendGConf;});
|
bcop pyrex configBackendGConf;});
|
||||||
ccsm = import ./ccsm (args // {inherit libcompizconfig bcop compizConfigPython configBackendGConf;});
|
ccsm = selectVersion ./ccsm (args // {inherit libcompizconfig bcop compizConfigPython configBackendGConf;});
|
||||||
pluginsMain = import ./main (args //{inherit bcop ;});
|
pluginsMain = selectVersion ./main (args //{inherit bcop ;});
|
||||||
pluginsExtra = import ./extra (args //{inherit bcop pluginsMain;});
|
pluginsExtra = selectVersion ./extra (args //{inherit bcop pluginsMain;});
|
||||||
compizManager = import ./compiz-manager (args // {inherit bcop ccsm;});
|
compizManager = selectVersion ./compiz-manager (args // {inherit bcop ccsm;});
|
||||||
}
|
}
|
||||||
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -1,9 +0,0 @@
|
|||||||
let
|
|
||||||
realPath=y: (__toPath ((toString ./JustNothing/.. )+"/"+y.version+".nix"));
|
|
||||||
dispatch=(x: ((import (realPath x)) x));
|
|
||||||
in
|
|
||||||
args :
|
|
||||||
with args;
|
|
||||||
with builderDefs {src="";} null;
|
|
||||||
let eater=(lib.sumArgs dispatch args); in
|
|
||||||
eater
|
|
@ -1,2 +0,0 @@
|
|||||||
args :
|
|
||||||
(import (__toPath ((toString ./JustNothing/.. )+"/"+args.version+".nix"))) args
|
|
@ -228,6 +228,12 @@ rec {
|
|||||||
inherit stdenv lib;
|
inherit stdenv lib;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# Call a specific version of a Nix expression, that is,
|
||||||
|
# `selectVersion ./foo {version = "0.1.2"; args...}' evaluates to
|
||||||
|
# `import ./foo/0.1.2.nix args'.
|
||||||
|
selectVersion = dir: args: import (dir + "/${args.version}.nix") args;
|
||||||
|
|
||||||
|
|
||||||
### STANDARD ENVIRONMENT
|
### STANDARD ENVIRONMENT
|
||||||
|
|
||||||
|
|
||||||
@ -1222,16 +1228,14 @@ rec {
|
|||||||
inherit fetchurl stdenv zlib bzip2;
|
inherit fetchurl stdenv zlib bzip2;
|
||||||
};
|
};
|
||||||
|
|
||||||
pyrexFun = lib.sumArgs (import ../development/interpreters/pyrex) {
|
pyrexFun = lib.sumArgs (selectVersion ../development/interpreters/pyrex) {
|
||||||
inherit fetchurl stdenv stringsWithDeps lib builderDefs;
|
inherit fetchurl stdenv stringsWithDeps lib builderDefs;
|
||||||
python = python_alts.v_2_5;
|
python = python_alts.v_2_5;
|
||||||
};
|
};
|
||||||
|
|
||||||
pyrex = pyrexFun {
|
pyrex = pyrexFun {version = "0.9.6";} null;
|
||||||
version = "0.9.6";
|
|
||||||
} null;
|
|
||||||
|
|
||||||
QiFun = lib.sumArgs (import ../development/compilers/qi) {
|
QiFun = lib.sumArgs (selectVersion ../development/compilers/qi) {
|
||||||
inherit clisp stdenv fetchurl builderDefs unzip;
|
inherit clisp stdenv fetchurl builderDefs unzip;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1414,7 +1418,7 @@ rec {
|
|||||||
inherit fetchurl stdenv perl perlXMLSimple;
|
inherit fetchurl stdenv perl perlXMLSimple;
|
||||||
};
|
};
|
||||||
|
|
||||||
indentFun = import ../development/tools/misc/indent {
|
indentFun = lib.sumArgs (selectVersion ../development/tools/misc/indent) {
|
||||||
inherit fetchurl stdenv builderDefs;
|
inherit fetchurl stdenv builderDefs;
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -1904,9 +1908,9 @@ rec {
|
|||||||
inherit fetchurl stdenv x11 libjpeg libtiff libungif libpng bzip2;
|
inherit fetchurl stdenv x11 libjpeg libtiff libungif libpng bzip2;
|
||||||
};
|
};
|
||||||
|
|
||||||
intltoolFun = lib.sumArgs (import ../development/tools/misc/intltool) {
|
intltoolFun = lib.sumArgs (selectVersion ../development/tools/misc/intltool) {
|
||||||
inherit fetchurl stdenv lib builderDefs stringsWithDeps
|
inherit fetchurl stdenv lib builderDefs stringsWithDeps
|
||||||
perl perlXMLParser;
|
perl perlXMLParser;
|
||||||
};
|
};
|
||||||
|
|
||||||
intltool = intltoolFun {version = "0.36.2";} null;
|
intltool = intltoolFun {version = "0.36.2";} null;
|
||||||
@ -3581,10 +3585,9 @@ rec {
|
|||||||
libXinerama libICE libSM libXrender xextproto;
|
libXinerama libICE libSM libXrender xextproto;
|
||||||
inherit (gnome) startupnotification libwnck GConf;
|
inherit (gnome) startupnotification libwnck GConf;
|
||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
inherit (gnome) libgnome libgnomeui metacity
|
inherit (gnome) libgnome libgnomeui metacity glib pango
|
||||||
glib pango libglade libgtkhtml gtkhtml
|
libglade libgtkhtml gtkhtml libgnomecanvas libgnomeprint
|
||||||
libgnomecanvas libgnomeprint
|
libgnomeprintui gnomepanel;
|
||||||
libgnomeprintui gnomepanel;
|
|
||||||
gnomegtk = gnome.gtk;
|
gnomegtk = gnome.gtk;
|
||||||
inherit librsvg fuse;
|
inherit librsvg fuse;
|
||||||
};
|
};
|
||||||
@ -3593,17 +3596,17 @@ rec {
|
|||||||
version = "0.6.2";
|
version = "0.6.2";
|
||||||
};
|
};
|
||||||
|
|
||||||
compizFun = lib.sumArgs (assert mesaSupported; import ../applications/window-managers/compiz) {
|
compizFun = lib.sumArgs (assert mesaSupported; selectVersion ../applications/window-managers/compiz) {
|
||||||
inherit lib builderDefs stringsWithDeps;
|
inherit lib builderDefs stringsWithDeps;
|
||||||
inherit fetchurl stdenv pkgconfig libpng mesa perl perlXMLParser libxslt;
|
inherit fetchurl stdenv pkgconfig libpng mesa perl perlXMLParser libxslt;
|
||||||
inherit (xorg) libXcomposite libXfixes libXdamage libXrandr
|
inherit (xorg) libXcomposite libXfixes libXdamage libXrandr
|
||||||
libXinerama libICE libSM libXrender xextproto;
|
libXinerama libICE libSM libXrender xextproto;
|
||||||
inherit (gnome) startupnotification libwnck GConf;
|
inherit (gnome) startupnotification libwnck GConf;
|
||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
inherit (gnome) libgnome libgnomeui metacity
|
inherit (gnome) libgnome libgnomeui metacity
|
||||||
glib pango libglade libgtkhtml gtkhtml
|
glib pango libglade libgtkhtml gtkhtml
|
||||||
libgnomecanvas libgnomeprint
|
libgnomecanvas libgnomeprint
|
||||||
libgnomeprintui gnomepanel;
|
libgnomeprintui gnomepanel;
|
||||||
gnomegtk = gnome.gtk;
|
gnomegtk = gnome.gtk;
|
||||||
inherit librsvg fuse;
|
inherit librsvg fuse;
|
||||||
inherit dbus dbus_glib;
|
inherit dbus dbus_glib;
|
||||||
@ -3615,27 +3618,23 @@ rec {
|
|||||||
} null;
|
} null;
|
||||||
|
|
||||||
compizFusion = assert mesaSupported; import ../applications/window-managers/compiz-fusion {
|
compizFusion = assert mesaSupported; import ../applications/window-managers/compiz-fusion {
|
||||||
|
version = getConfig ["compizFusion" "version"] "0.6.0";
|
||||||
version = getConfig ["compizFusion" "version"] "0.6.0" ;
|
inherit compiz;
|
||||||
inherit compiz;
|
inherit stringsWithDeps lib builderDefs;
|
||||||
|
|
||||||
inherit stringsWithDeps lib builderDefs;
|
|
||||||
|
|
||||||
inherit fetchurl stdenv pkgconfig libpng mesa perl perlXMLParser libxslt;
|
inherit fetchurl stdenv pkgconfig libpng mesa perl perlXMLParser libxslt;
|
||||||
inherit (xorg) libXcomposite libXfixes libXdamage libXrandr
|
inherit (xorg) libXcomposite libXfixes libXdamage libXrandr
|
||||||
libXinerama libICE libSM libXrender xextproto;
|
libXinerama libICE libSM libXrender xextproto;
|
||||||
inherit (gnome) startupnotification libwnck GConf;
|
inherit (gnome) startupnotification libwnck GConf;
|
||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
inherit (gnome) libgnome libgnomeui metacity
|
inherit (gnome) libgnome libgnomeui metacity
|
||||||
glib pango libglade libgtkhtml gtkhtml
|
glib pango libglade libgtkhtml gtkhtml
|
||||||
libgnomecanvas libgnomeprint
|
libgnomecanvas libgnomeprint
|
||||||
libgnomeprintui gnomepanel gnomedesktop;
|
libgnomeprintui gnomepanel gnomedesktop;
|
||||||
gnomegtk = gnome.gtk;
|
gnomegtk = gnome.gtk;
|
||||||
inherit librsvg fuse dbus dbus_glib git;
|
inherit librsvg fuse dbus dbus_glib git;
|
||||||
|
inherit automake autoconf libtool intltool python pyrex gettext;
|
||||||
inherit automake autoconf libtool intltool python pyrex gettext;
|
inherit pygtk pycairo getopt libjpeg glxinfo;
|
||||||
inherit pygtk pycairo getopt libjpeg glxinfo;
|
inherit (xorg) xvinfo xdpyinfo;
|
||||||
inherit (xorg) xvinfo xdpyinfo;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
compizExtra = import ../applications/window-managers/compiz/extra.nix {
|
compizExtra = import ../applications/window-managers/compiz/extra.nix {
|
||||||
@ -3727,7 +3726,7 @@ rec {
|
|||||||
xftSupport = true;
|
xftSupport = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
fbpanelFun = lib.sumArgs (import ../applications/window-managers/fbpanel) {
|
fbpanelFun = lib.sumArgs (selectVersion ../applications/window-managers/fbpanel) {
|
||||||
inherit fetchurl stdenv builderDefs pkgconfig libpng libjpeg libtiff librsvg;
|
inherit fetchurl stdenv builderDefs pkgconfig libpng libjpeg libtiff librsvg;
|
||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
inherit (xlibs) libX11 libXmu libXpm;
|
inherit (xlibs) libX11 libXmu libXpm;
|
||||||
@ -3829,13 +3828,11 @@ rec {
|
|||||||
inherit (xlibs) libX11 libXext libXi libXmu;
|
inherit (xlibs) libX11 libXext libXi libXmu;
|
||||||
};
|
};
|
||||||
|
|
||||||
gocrFun = lib.sumArgs (import ../applications/graphics/gocr) {
|
gocrFun = lib.sumArgs (selectVersion ../applications/graphics/gocr) {
|
||||||
inherit builderDefs fetchurl stdenv;
|
inherit builderDefs fetchurl stdenv;
|
||||||
};
|
};
|
||||||
|
|
||||||
gocr = gocrFun {
|
gocr = gocrFun {version = "0.44";} null;
|
||||||
version = "0.44";
|
|
||||||
} null;
|
|
||||||
|
|
||||||
gphoto2 = import ../applications/misc/gphoto2 {
|
gphoto2 = import ../applications/misc/gphoto2 {
|
||||||
inherit fetchurl stdenv pkgconfig libgphoto2 libexif popt readline gettext;
|
inherit fetchurl stdenv pkgconfig libgphoto2 libexif popt readline gettext;
|
||||||
@ -4340,17 +4337,17 @@ rec {
|
|||||||
base14Fonts = "${ghostscript}/share/ghostscript/fonts";
|
base14Fonts = "${ghostscript}/share/ghostscript/fonts";
|
||||||
};
|
};
|
||||||
|
|
||||||
xscreensaverFun = import ../applications/graphics/xscreensaver {
|
xscreensaverFun = lib.sumArgs (selectVersion ../applications/graphics/xscreensaver) {
|
||||||
inherit stdenv fetchurl builderDefs lib pkgconfig bc perl intltool;
|
inherit stdenv fetchurl builderDefs lib pkgconfig bc perl intltool;
|
||||||
inherit (xlibs) libX11 libXmu;
|
inherit (xlibs) libX11 libXmu;
|
||||||
};
|
};
|
||||||
|
|
||||||
xscreensaver = xscreensaverFun {
|
xscreensaver = xscreensaverFun {
|
||||||
version = "5.04";
|
version = "5.04";
|
||||||
flags = ["GL" "gdkpixbuf" "DPMS" "gui" "jpeg"];
|
flags = ["GL" "gdkpixbuf" "DPMS" "gui" "jpeg"];
|
||||||
inherit mesa libxml2 libjpeg;
|
inherit mesa libxml2 libjpeg;
|
||||||
inherit (gtkLibs) gtk;
|
inherit (gtkLibs) gtk;
|
||||||
inherit (gnome) libglade;
|
inherit (gnome) libglade;
|
||||||
} null;
|
} null;
|
||||||
|
|
||||||
xterm = import ../applications/misc/xterm {
|
xterm = import ../applications/misc/xterm {
|
||||||
|
@ -1,9 +0,0 @@
|
|||||||
let
|
|
||||||
realPath=y: (__toPath ((toString ./JustNothing/.. )+"/"+y.version+".nix"));
|
|
||||||
dispatch=(x: ((import (realPath x)) x));
|
|
||||||
in
|
|
||||||
args :
|
|
||||||
with args;
|
|
||||||
with builderDefs {src="";} null;
|
|
||||||
let eater=(lib.sumArgs dispatch args); in
|
|
||||||
eater
|
|
Loading…
x
Reference in New Issue
Block a user