Changed builderDefs to use composedArgsAndFun, reduced number of nulls, made overrides in builderDefsPackage to work in an intuitive manner.

svn path=/nixpkgs/trunk/; revision=12655
This commit is contained in:
Michael Raskin 2008-08-19 05:54:09 +00:00
parent b5b68ce414
commit 87ff8d6347
51 changed files with 224 additions and 181 deletions

View File

@ -1,5 +1,5 @@
args: with args; args: with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = src =
fetchurl { fetchurl {
url = mirror://sourceforge/audacity/audacity-src-1.3.3.tar.gz; url = mirror://sourceforge/audacity/audacity-src-1.3.3.tar.gz;
@ -8,7 +8,7 @@ args: with args;
buildInputs =[(wxGTK null) libogg libvorbis libsndfile libmad pkgconfig gtk buildInputs =[(wxGTK null) libogg libvorbis libsndfile libmad pkgconfig gtk
gettext glib]; gettext glib];
} null; };
in with localDefs; in with localDefs;
let let
postInstall = FullDepEntry (" postInstall = FullDepEntry ("

View File

@ -1,5 +1,5 @@
args: with args; args: with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = src =
fetchurl { fetchurl {
url = http://plugin.org.uk/releases/0.4.15/swh-plugins-0.4.15.tar.gz; url = http://plugin.org.uk/releases/0.4.15/swh-plugins-0.4.15.tar.gz;
@ -7,7 +7,7 @@ args: with args;
}; };
buildInputs = [fftw ladspaH pkgconfig]; buildInputs = [fftw ladspaH pkgconfig];
configureFlags = []; configureFlags = [];
} null; };
in with localDefs; in with localDefs;
let let
postInstall = FullDepEntry (" postInstall = FullDepEntry ("

View File

@ -6,10 +6,10 @@ let
sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67"; sha256 = "1b908csn85ng9sz5s5d1mqk711cmawain2z8px2ajngihdrynb67";
}; };
in in
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
buildInputs = []; buildInputs = [];
inherit src; inherit src;
} null; };
in with localDefs; in with localDefs;
let let
copyFile = FullDepEntry (" copyFile = FullDepEntry ("

View File

@ -1,12 +1,12 @@
args : with args; args :
let localDefs = builderDefs { let
src = lib = args.lib;
fetchurl { fetchurl = args.fetchurl;
url = http://downloads.sourceforge.net/snd/snd-9.4.tar.gz; FullDepEntry = args.FullDepEntry;
sha256 = "0zqgfnkvkqxby1k74mwba1r4pb520glcsz5jjmpzm9m41nqnghmm";
};
buildInputs = [gtk glib pkgconfig libXpm gmp gettext libX11 fftw] version = lib.getAttr ["version"] "9.4" args;
buildInputs = with args; [gtk glib pkgconfig
libXpm gmp gettext libX11 fftw]
++ (lib.optional (args ? ruby) args.ruby) ++ (lib.optional (args ? ruby) args.ruby)
++ (lib.optional (args ? mesa) args.mesa) ++ (lib.optional (args ? mesa) args.mesa)
++ (lib.optional (args ? guile) args.guile) ++ (lib.optional (args ? guile) args.guile)
@ -24,25 +24,34 @@ args : with args;
++ (lib.optional (args ? jackaudio) "--with-jack" ) ++ (lib.optional (args ? jackaudio) "--with-jack" )
++ [ "--with-fftw" "--htmldir=$out/share/snd/html" "--with-doc-dir=$out/share/snd/html" ] ++ [ "--with-fftw" "--htmldir=$out/share/snd/html" "--with-doc-dir=$out/share/snd/html" ]
; ;
} null; /* null is a terminator for sumArgs */ in
in with localDefs; rec {
let makeDocsWork = FullDepEntry '' src = fetchurl {
url = "http://downloads.sourceforge.net/snd/snd-${version}.tar.gz";
sha256 = "0zqgfnkvkqxby1k74mwba1r4pb520glcsz5jjmpzm9m41nqnghmm";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be specified separately */
phaseNames = ["doConfigure" "preBuild" "makeDocsWork"
"doMakeInstall" "doForceShare"];
makeDocsWork = FullDepEntry ''
# hackish way to make html docs work # hackish way to make html docs work
h="$out/share/snd/html"; ensureDir "$h"; cp *.html "$h" h="$out/share/snd/html"; ensureDir "$h"; cp *.html "$h"
patch -p1 < ${./doc.patch} patch -p1 < ${./doc.patch}
sed "s@HTML-DIR@$h@" -i index.scm snd-help.c sed "s@HTML-DIR@$h@" -i index.scm snd-help.c
'' [defEnsureDir]; '' ["defEnsureDir"];
preBuild = FullDepEntry ('' preBuild = FullDepEntry (''
cp config.log /tmp/snd-config.log cp config.log /tmp/snd-config.log
export NIX_LDFLAGS="$NIX_LDFLAGS -L${libX11}/lib -lX11" export NIX_LDFLAGS="$NIX_LDFLAGS -L${args.libX11}/lib -lX11"
'') [minInit doUnpack makeDocsWork]; '') ["minInit" "doUnpack" "makeDocsWork"];
in
stdenv.mkDerivation rec { name = "Snd-" + version;
name = "Snd-9.4";
builder = writeScript (name + "-builder")
(textClosure localDefs [doConfigure preBuild makeDocsWork doMakeInstall doForceShare ]);
meta = { meta = {
description = "Snd sound editor."; description = "Snd sound editor.";
homepage = http://ccrma.stanford.edu/software/snd; homepage = http://ccrma.stanford.edu/software/snd;

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://prdownloads.sourceforge.net/jocr/gocr-0.44.tar.gz; url = http://prdownloads.sourceforge.net/jocr/gocr-0.44.tar.gz;
@ -8,7 +8,7 @@ fetchurl {
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gocr"; name = "gocr";

View File

@ -1,4 +1,4 @@
args : with args; let localDefs = builderDefs (args // { args : with args; let localDefs = builderDefs.meta.function (args // {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://www.jwz.org/xscreensaver/xscreensaver-5.05.tar.gz; url = http://www.jwz.org/xscreensaver/xscreensaver-5.05.tar.gz;
@ -19,7 +19,7 @@ args : with args; let localDefs = builderDefs (args // {
"true" (" --with-x-app-defaults=\$out/share/xscreensaver/app-defaults "+ "true" (" --with-x-app-defaults=\$out/share/xscreensaver/app-defaults "+
" --with-hackdir=\$out/share/xscreensaver-hacks ") " --with-hackdir=\$out/share/xscreensaver-hacks ")
]; ];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
let let
preConfigure = FullDepEntry (" preConfigure = FullDepEntry ("

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function ((rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://download2.berlios.de/linuxdcpp/linuxdcpp-1.0.1.tar.bz2; url = http://download2.berlios.de/linuxdcpp/linuxdcpp-1.0.1.tar.bz2;
@ -15,7 +15,7 @@ args : with args; with builderDefs {src="";} null;
scons PREFIX=$out scons PREFIX=$out
scons PREFIX=$out install scons PREFIX=$out install
'') ["minInit" "doUnpack" "addInputs" "defEnsureDir"]; '') ["minInit" "doUnpack" "addInputs" "defEnsureDir"];
}) args null; /* null is a terminator for sumArgs */ }) // args);
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ldcpp-"+version; name = "ldcpp-"+version;

View File

@ -1,6 +1,6 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = [ http://fabrice.bellard.free.fr/qemu/linux-0.2.img.bz2 http://bellard.org/qemu/linux-0.2.img.bz2]; url = [ http://fabrice.bellard.free.fr/qemu/linux-0.2.img.bz2 http://bellard.org/qemu/linux-0.2.img.bz2];
@ -8,7 +8,7 @@ args : with args;
}; };
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
doCopy = FullDepEntry (" doCopy = FullDepEntry ("

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://releases.compiz-fusion.org/compiz/0.6.2/compiz-0.6.2.tar.bz2; url = http://releases.compiz-fusion.org/compiz/0.6.2/compiz-0.6.2.tar.bz2;
@ -21,7 +21,7 @@ args : with args;
"--enable-annotate" "--enable-librsvg"] ++ "--enable-annotate" "--enable-librsvg"] ++
(if args ? extraConfigureFlags then args.extraConfigureFlags else []); (if args ? extraConfigureFlags then args.extraConfigureFlags else []);
patches = [ ./glx-patch-0.6.2.patch ]; patches = [ ./glx-patch-0.6.2.patch ];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
postAll = FullDepEntry (" postAll = FullDepEntry ("

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://releases.compiz-fusion.org/0.7.4/compiz/compiz-0.7.4.tar.bz2; url = http://releases.compiz-fusion.org/0.7.4/compiz/compiz-0.7.4.tar.bz2;
@ -22,7 +22,7 @@ args : with args;
"--enable-annotate" "--enable-librsvg"] ++ "--enable-annotate" "--enable-librsvg"] ++
(if args ? extraConfigureFlags then args.extraConfigureFlags else []); (if args ? extraConfigureFlags then args.extraConfigureFlags else []);
patches = [ ./glx-patch-0.6.2.patch ]; patches = [ ./glx-patch-0.6.2.patch ];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
postAll = FullDepEntry (" postAll = FullDepEntry ("

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://garr.dl.sourceforge.net/sourceforge/fbpanel/fbpanel-4.12.tgz; url = http://garr.dl.sourceforge.net/sourceforge/fbpanel/fbpanel-4.12.tgz;
@ -9,7 +9,7 @@ args : with args;
buildInputs = [libX11 gtk pkgconfig libXmu libXpm buildInputs = [libX11 gtk pkgconfig libXmu libXpm
libpng libjpeg libtiff librsvg]; libpng libjpeg libtiff librsvg];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ }; /* null is a terminator for sumArgs */
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "fbpanel"; name = "fbpanel";

View File

@ -1,10 +1,10 @@
args : with args; args : with args;
let let
localDefs = with (builderDefs {src="";} null); localDefs = with (builderDefs.meta.function {src="";});
let let
checkFlag = flag : lib.getAttr [flag] false args; checkFlag = flag : lib.getAttr [flag] false args;
in in
builderDefs { builderDefs.meta.function ({
inherit src; inherit src;
inherit checkFlag; inherit checkFlag;
buildInputs = []; buildInputs = [];
@ -40,7 +40,7 @@ args : with args;
+ (if args ? extraReplacements then + (if args ? extraReplacements then
args.extraReplacements args.extraReplacements
else ""))["minInit" "doUnpack"]; else ""))["minInit" "doUnpack"];
} args null; /* null is a terminator for sumArgs */ } // args);
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = localDefs.name + "deb"; name = localDefs.name + "deb";

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://crl.nmsu.edu/~mleisher/cu/cu12-1.9.tar.gz; url = http://crl.nmsu.edu/~mleisher/cu/cu12-1.9.tar.gz;
@ -15,7 +15,7 @@ args : with args; with builderDefs {src="";} null;
mkfontdir mkfontdir
mkfontscale mkfontscale
'') ["minInit" "defEnsureDir" "addInputs"]; '') ["minInit" "defEnsureDir" "addInputs"];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "clearlyU-12-"+version; name = "clearlyU-12-"+version;

View File

@ -1,9 +1,9 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src =""; /* put a fetchurl here */ src =""; /* put a fetchurl here */
buildInputs = [mkfontdir mkfontscale ttmkfdir]; buildInputs = [mkfontdir mkfontscale ttmkfdir];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
doInstall = FullDepEntry (" doInstall = FullDepEntry ("

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://prdownloads.sourceforge.net/junicode/junicode-0.6.15.zip; url = http://prdownloads.sourceforge.net/junicode/junicode-0.6.15.zip;
@ -13,7 +13,7 @@ args : with args; with builderDefs {src="";} null;
ensureDir $out/share/fonts/junicode-ttf ensureDir $out/share/fonts/junicode-ttf
cp *.ttf $out/share/fonts/junicode-ttf cp *.ttf $out/share/fonts/junicode-ttf
'') ["minInit" "addInputs" "defEnsureDir"]; '') ["minInit" "addInputs" "defEnsureDir"];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "junicode-"+version; name = "junicode-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://prdownloads.sourceforge.net/wqy/wqy-zenhei-0.4.23-1.tar.gz; url = http://prdownloads.sourceforge.net/wqy/wqy-zenhei-0.4.23-1.tar.gz;
@ -12,7 +12,7 @@ args : with args; with builderDefs {src="";} null;
ensureDir $out/share/fonts ensureDir $out/share/fonts
cp *.ttf $out/share/fonts cp *.ttf $out/share/fonts
'') ["minInit" "addInputs" "doUnpack" "defEnsureDir"]; '') ["minInit" "addInputs" "doUnpack" "defEnsureDir"];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "wqy-zenhei-"+version; name = "wqy-zenhei-"+version;

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://www.lambdassociates.org/Download/Qi9.1.zip; url = http://www.lambdassociates.org/Download/Qi9.1.zip;
@ -7,7 +7,7 @@ args : with args;
}; };
buildInputs = [ unzip clisp]; buildInputs = [ unzip clisp];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
shell=stdenv.shell; shell=stdenv.shell;

View File

@ -2,7 +2,7 @@ args: with args;
let let
localDefs = builderDefs { localDefs = builderDefs.meta.function {
src = fetchurl { src = fetchurl {
url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.5.1.1.tar.gz; url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.5.1.1.tar.gz;
@ -11,7 +11,7 @@ let
buildInputs = [python]; buildInputs = [python];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;

View File

@ -2,7 +2,7 @@ args: with args;
let let
localDefs = builderDefs { localDefs = builderDefs.meta.function {
src = fetchurl { src = fetchurl {
url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.6.4.tar.gz; url = http://www.cosc.canterbury.ac.nz/greg.ewing/python/Pyrex/oldtar/Pyrex-0.9.6.4.tar.gz;
@ -11,7 +11,7 @@ let
buildInputs = [python]; buildInputs = [python];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;

View File

@ -0,0 +1,26 @@
args :
let
lib = args.lib;
fetchurl = args.fetchurl;
simplyShare = args.simplyShare;
version = lib.getAttr ["version"] "2.0.0" args;
buildInputs = with args; [ ];
in
rec {
src = fetchurl {
url = http://weitz.de/files/cl-ppcre.tar.gz;
sha256 = "14zxrmc4b4q9kg505y9lb0nqp80fpmpwn51xwkqiwkm361n6h23p";
};
inherit buildInputs;
configureFlags = [];
/* doConfigure should be specified separately */
phaseNames = [(simplyShare "cl-ppcre")];
name = "cl-ppcre-" + version;
meta = {
description = "Common Lisp Portable Perl Compatible RegExp library";
};
}

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = src =
fetchurl { fetchurl {
url = ftp://ftp.fftw.org/pub/fftw/fftw-3.1.2.tar.gz; url = ftp://ftp.fftw.org/pub/fftw/fftw-3.1.2.tar.gz;
@ -7,7 +7,7 @@ args : with args;
}; };
buildInputs = []; buildInputs = [];
configureFlags = ["--enable-float --enable-shared"]; configureFlags = ["--enable-float --enable-shared"];
} null; };
in with localDefs; in with localDefs;
stdenv.mkDerivation { stdenv.mkDerivation {
name = "fftw-3.1.2"; name = "fftw-3.1.2";

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = mirror://sourceforge/libdbi-drivers/libdbi-drivers-0.8.2-1.tar.gz; url = mirror://sourceforge/libdbi-drivers/libdbi-drivers-0.8.2-1.tar.gz;
@ -26,7 +26,7 @@ args : with args;
" --with-sqlite-libdir=${args.sqlite}/lib/sqlite " " --with-sqlite-libdir=${args.sqlite}/lib/sqlite "
] else []) ] else [])
; ;
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libdbi"+version; name = "libdbi"+version;

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = mirror://sourceforge/libdbi/libdbi-0.8.2.tar.gz; url = mirror://sourceforge/libdbi/libdbi-0.8.2.tar.gz;
@ -8,7 +8,7 @@ args : with args;
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libdbi"+version; name = "libdbi"+version;

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://gnunet.org/libextractor/download/libextractor-0.5.18.tar.gz; url = http://gnunet.org/libextractor/download/libextractor-0.5.18.tar.gz;
@ -8,7 +8,7 @@ args : with args;
buildInputs = [ zlib]; buildInputs = [ zlib];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "libextractor"+version; name = "libextractor"+version;

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = ftp://ftp.gnu.org/gnu/indent/indent-2.2.9.tar.gz; url = ftp://ftp.gnu.org/gnu/indent/indent-2.2.9.tar.gz;
@ -8,7 +8,7 @@ args : with args;
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
preBuild = FullDepEntry (" preBuild = FullDepEntry ("

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://ftp.gnome.org/pub/gnome/sources/intltool/0.36/intltool-0.36.2.tar.bz2; url = http://ftp.gnome.org/pub/gnome/sources/intltool/0.36/intltool-0.36.2.tar.bz2;
@ -8,7 +8,7 @@ args : with args;
propagatedBuildInputs = [perl perlXMLParser]; propagatedBuildInputs = [perl perlXMLParser];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "intltool-0.36.2"; name = "intltool-0.36.2";

View File

@ -1,7 +1,7 @@
args : with args; let args : with args; let
patch = ./ltrace_0.5-3.diff.gz; patch = ./ltrace_0.5-3.diff.gz;
localDefs = with (builderDefs {src="";} null); localDefs = with builderDefs;
builderDefs { builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.5.orig.tar.gz; url = ftp://ftp.debian.org/debian/pool/main/l/ltrace/ltrace_0.5.orig.tar.gz;
@ -17,7 +17,7 @@ args : with args; let
gunzip < ${patch} | patch -Np1 gunzip < ${patch} | patch -Np1
sed -e s@-Werror@@ -i Makefile.in sed -e s@-Werror@@ -i Makefile.in
'')["minInit" "doUnpack"]; '')["minInit" "doUnpack"];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
preConfigure = FullDepEntry (" preConfigure = FullDepEntry ("

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://savannah.nongnu.org/download/construo/construo-0.2.2.tar.gz; url = http://savannah.nongnu.org/download/construo/construo-0.2.2.tar.gz;
@ -10,7 +10,7 @@ args : with args;
++ (if args ? mesa then [args.mesa args.freeglut] else []) ++ (if args ? mesa then [args.mesa args.freeglut] else [])
; ;
configureFlags = [""]; configureFlags = [""];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
preConfigure = FullDepEntry (" preConfigure = FullDepEntry ("

View File

@ -1,12 +1,12 @@
args: with args; args: with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
buildInputs =[(wxGTK null)]; buildInputs =[(wxGTK null)];
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;
sha256 = "1756y01rkvd3f1pkj88jqh83fqcfl2fy0c48mcq53pjzln9ycv8c"; sha256 = "1756y01rkvd3f1pkj88jqh83fqcfl2fy0c48mcq53pjzln9ycv8c";
}; };
} null; };
in with localDefs; in with localDefs;
let let
preBuild = FullDepEntry " preBuild = FullDepEntry "

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
sha256 = "1kx69f9jqnfzwjh47cl1df8p8hn3bnp6bznxnb6c4wx32ijn5gri"; sha256 = "1kx69f9jqnfzwjh47cl1df8p8hn3bnp6bznxnb6c4wx32ijn5gri";
@ -27,7 +27,7 @@ $out/dump/orbit "\$@"
EOF EOF
chmod a+x $out/bin/space-orbit chmod a+x $out/bin/space-orbit
'') ["minInit" "doUnpack" "defEnsureDir" "addInputs"]; '') ["minInit" "doUnpack" "defEnsureDir" "addInputs"];
} null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "space-orbit-"+version; name = "space-orbit-"+version;

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://downloads.sourceforge.net/madwifi/madwifi-0.9.4.tar.gz; url = http://downloads.sourceforge.net/madwifi/madwifi-0.9.4.tar.gz;
@ -9,7 +9,7 @@ args : with args;
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out'']; makeFlags = [''KERNELPATH=${kernel}/lib/modules/*/build'' ''DESTDIR=$out''];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
postInstall = FullDepEntry ('' postInstall = FullDepEntry (''

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = fetchurl { src = fetchurl {
url = http://snapshots.madwifi.org/madwifi-trunk/madwifi-trunk-r3693-20080602.tar.gz; url = http://snapshots.madwifi.org/madwifi-trunk/madwifi-trunk-r3693-20080602.tar.gz;
sha256 = "0r9nnxcq50rgwcm9y93rpk3mqknl3ixkxkd72437b55qlz1f9vs3"; sha256 = "0r9nnxcq50rgwcm9y93rpk3mqknl3ixkxkd72437b55qlz1f9vs3";
@ -12,7 +12,7 @@ args : with args;
url = http://people.freebsd.org/~sam/ath_hal-20080528.tgz; url = http://people.freebsd.org/~sam/ath_hal-20080528.tgz;
sha256 = "1a6glkd8n46876hl48ib08p81qwsvrk4153j4b9xrxgid6f8bar9"; sha256 = "1a6glkd8n46876hl48ib08p81qwsvrk4153j4b9xrxgid6f8bar9";
}; };
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let let
preBuild = FullDepEntry ('' preBuild = FullDepEntry (''

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://download.savannah.gnu.org/releases/dmidecode/dmidecode-2.9.tar.bz2; url = http://download.savannah.gnu.org/releases/dmidecode/dmidecode-2.9.tar.bz2;
@ -9,7 +9,7 @@ args : with args;
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
makeFlags = "prefix=\$out"; makeFlags = "prefix=\$out";
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dmidecode-"+version; name = "dmidecode-"+version;

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://sg.torque.net/sg/p/sdparm-1.02.tgz; url = http://sg.torque.net/sg/p/sdparm-1.02.tgz;
@ -8,7 +8,7 @@ args : with args;
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "sdparm-"+version; name = "sdparm-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function ((rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = ftp://ftp.dict.org/pub/dict/dictd-1.9.15.tar.gz; url = ftp://ftp.dict.org/pub/dict/dictd-1.9.15.tar.gz;
@ -8,7 +8,7 @@ args : with args; with builderDefs {src="";} null;
buildInputs = [flex bison which]; buildInputs = [flex bison which];
configureFlags = [ " --datadir=/var/run/current-system/share/dictd " ]; configureFlags = [ " --datadir=/var/run/current-system/share/dictd " ];
}) args null; /* null is a terminator for sumArgs */ }) // args);
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dict-"+version; name = "dict-"+version;

View File

@ -1,8 +1,8 @@
{ builderDefs }: { builderDefs }:
let makeDictdDB = _src: _name: _subdir: _locale: let makeDictdDB = _src: _name: _subdir: _locale:
with builderDefs {src="";} null; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src=_src; src=_src;
doInstall = FullDepEntry ('' doInstall = FullDepEntry (''
ensureDir $out/share/dictd ensureDir $out/share/dictd
@ -13,7 +13,7 @@ with builderDefs {src="";} null;
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dictd-db-${_name}"; name = "dictd-db-${_name}";
@ -32,7 +32,7 @@ stdenv.mkDerivation rec {
# Probably a bug in some FreeDict release files, but easier to trivially # Probably a bug in some FreeDict release files, but easier to trivially
# work around than report. Not that it can cause any other problems.. # work around than report. Not that it can cause any other problems..
makeDictdDBFreedict = _src: _name: _locale: makeDictdDB _src _name "{.,bin}" _locale; makeDictdDBFreedict = _src: _name: _locale: makeDictdDB _src _name "{.,bin}" _locale;
fetchurl = (builderDefs {src="";} null).fetchurl; fetchurl = builderDefs.fetchurl;
in in

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_4_5.tar.gz; url = http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_4_5.tar.gz;
@ -18,7 +18,7 @@ args : with args; with builderDefs {src="";} null;
ln -s /etc/openfire $out/conf ln -s /etc/openfire $out/conf
'') '')
["minInit" "doUnpack" "addInputs"]; ["minInit" "doUnpack" "addInputs"];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "openfire-"+version; name = "openfire-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_5_2.tar.gz; url = http://www.igniterealtime.org/downloadServlet?filename=openfire/openfire_3_5_2.tar.gz;
@ -18,7 +18,7 @@ args : with args; with builderDefs {src="";} null;
ln -s /etc/openfire $out/conf ln -s /etc/openfire $out/conf
'') '')
["minInit" "doUnpack" "addInputs"]; ["minInit" "doUnpack" "addInputs"];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "openfire-"+version; name = "openfire-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = mirror://sourceforge/libvncserver/x11vnc-0.9.3.tar.gz; url = mirror://sourceforge/libvncserver/x11vnc-0.9.3.tar.gz;
@ -10,7 +10,7 @@ args : with args; with builderDefs {src="";} null;
zlib libX11 xproto libjpeg libXtst libXinerama xineramaproto zlib libX11 xproto libjpeg libXtst libXinerama xineramaproto
libXrandr randrproto libXext xextproto inputproto recordproto]; libXrandr randrproto libXext xextproto inputproto recordproto];
configureFlags = []; configureFlags = [];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "x11vnc-"+version; name = "x11vnc-"+version;

View File

@ -1,6 +1,6 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs.meta.function {src="";};
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function ((rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://fredrik.hubbe.net/x2vnc/x2vnc-1.7.2.tar.gz; url = http://fredrik.hubbe.net/x2vnc/x2vnc-1.7.2.tar.gz;
@ -12,7 +12,7 @@ args : with args; with builderDefs {src="";} null;
ensureDir $out ensureDir $out
'') ["defEnsureDir"]; '') ["defEnsureDir"];
configureFlags = []; configureFlags = [];
}) args null; /* null is a terminator for sumArgs */ }) // args); /* null is a terminator for sumArgs */
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "x2vnc-"+version; name = "x2vnc-"+version;

View File

@ -1,10 +1,10 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let patch = let patch =
fetchurl { fetchurl {
url = http://ftp.de.debian.org/debian/pool/main/d/dosfstools/dosfstools_2.11-2.3.diff.gz; url = http://ftp.de.debian.org/debian/pool/main/d/dosfstools/dosfstools_2.11-2.3.diff.gz;
sha256 = "0bzjhpgg4ih6c76ax8byis9vxgkr2c7bbbshqrkfq8j7ar48n5ld"; sha256 = "0bzjhpgg4ih6c76ax8byis9vxgkr2c7bbbshqrkfq8j7ar48n5ld";
}; };
localDefs = builderDefs (rec { localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://ftp.de.debian.org/debian/pool/main/d/dosfstools/dosfstools_2.11.orig.tar.gz; url = http://ftp.de.debian.org/debian/pool/main/d/dosfstools/dosfstools_2.11.orig.tar.gz;
@ -17,7 +17,7 @@ args : with args; with builderDefs {src="";} null;
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
makeFlags = " PREFIX=$out "; makeFlags = " PREFIX=$out ";
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "dosfstools-"+version; name = "dosfstools-"+version;

View File

@ -1,6 +1,6 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
if args ? src then args.src else fetchcvs { if args ? src then args.src else fetchcvs {
cvsRoot = ":pserver:anonymous@relfs.cvs.sourceforge.net:/cvsroot/relfs"; cvsRoot = ":pserver:anonymous@relfs.cvs.sourceforge.net:/cvsroot/relfs";
@ -12,7 +12,7 @@ args : with args;
buildInputs = [ocaml fuse postgresql pcre buildInputs = [ocaml fuse postgresql pcre
e2fsprogs gnomevfs pkgconfig GConf]; e2fsprogs gnomevfs pkgconfig GConf];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
let build = FullDepEntry (" let build = FullDepEntry ("
cd deps cd deps

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = ftp://ftp.chg.ru/mirrors/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/rlwrap-0.28.tar.gz; url = ftp://ftp.chg.ru/mirrors/ftp.freebsd.org/pub/FreeBSD/ports/distfiles/rlwrap-0.28.tar.gz;
@ -8,7 +8,7 @@ args : with args; with builderDefs {src="";} null;
buildInputs = [readline ]; buildInputs = [readline ];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "rlwrap-"+version; name = "rlwrap-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = ftp://ftp.deepspace6.net/pub/ds6/sources/nc6/nc6-1.0.tar.bz2; url = ftp://ftp.deepspace6.net/pub/ds6/sources/nc6/nc6-1.0.tar.bz2;
@ -8,7 +8,7 @@ let localDefs = builderDefs (rec {
buildInputs = []; buildInputs = [];
configureFlags = []; configureFlags = [];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "nc6-"+version; name = "nc6-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://www.ricardis.tudelft.nl/~vincent/fusesmb/download/fusesmb-0.8.7.tar.gz; url = http://www.ricardis.tudelft.nl/~vincent/fusesmb/download/fusesmb-0.8.7.tar.gz;
@ -14,7 +14,7 @@ args : with args; with builderDefs {src="";} null;
ln -fs ${samba}/lib/libsmbclient.so $out/lib/libsmbclient.so.0 ln -fs ${samba}/lib/libsmbclient.so $out/lib/libsmbclient.so.0
'') '')
[ "minInit" "defEnsureDir" "doMakeInstall"]; [ "minInit" "defEnsureDir" "doMakeInstall"];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "smbfs-fuse-"+version; name = "smbfs-fuse-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://prdownloads.sourceforge.net/sourceforge/bmrsa/bmrsa11.zip; url = http://prdownloads.sourceforge.net/sourceforge/bmrsa/bmrsa11.zip;
@ -16,7 +16,7 @@ args : with args; with builderDefs {src="";} null;
ensureDir $out/bin ensureDir $out/bin
echo -e 'install:\n\tcp bmrsa '$out'/bin' >> Makefile echo -e 'install:\n\tcp bmrsa '$out'/bin' >> Makefile
'') ["minInit" "addInputs" "defEnsureDir"]; '') ["minInit" "addInputs" "defEnsureDir"];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "bmrsa-"+version; name = "bmrsa-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function ((rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://freshmeat.net/redir/seccure/65485/url_tgz/seccure-0.3.tar.gz; url = http://freshmeat.net/redir/seccure/65485/url_tgz/seccure-0.3.tar.gz;
@ -12,7 +12,7 @@ args : with args; with builderDefs {src="";} null;
sed -e s@/usr/@$out/@g -i Makefile sed -e s@/usr/@$out/@g -i Makefile
ensureDir $out/bin $out/share/man/man1 ensureDir $out/bin $out/share/man/man1
'') ["minInit" "doUnpack" "defEnsureDir"]; '') ["minInit" "doUnpack" "defEnsureDir"];
}) args null; /* null is a terminator for sumArgs */ }) // args);
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "seccure-"+version; name = "seccure-"+version;

View File

@ -1,5 +1,5 @@
args : with args; with builderDefs {src="";} null; args : with args; with builderDefs;
let localDefs = builderDefs (rec { let localDefs = builderDefs.meta.function (rec {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://point-at-infinity.org/ssss/ssss-0.5.tar.gz; url = http://point-at-infinity.org/ssss/ssss-0.5.tar.gz;
@ -15,7 +15,7 @@ args : with args; with builderDefs {src="";} null;
ensureDir $out/bin $out/share/man/man1 ensureDir $out/bin $out/share/man/man1
echo -e 'install:\n\tcp ssss-combine ssss-split '"$out"'/bin' >>Makefile echo -e 'install:\n\tcp ssss-combine ssss-split '"$out"'/bin' >>Makefile
'') ["minInit" "doUnpack" "defEnsureDir"]; '') ["minInit" "doUnpack" "defEnsureDir"];
}) null; /* null is a terminator for sumArgs */ });
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "ssss-"+version; name = "ssss-"+version;

View File

@ -1,5 +1,5 @@
args : with args; args : with args;
let localDefs = builderDefs { let localDefs = builderDefs.meta.function {
src = /* put a fetchurl here */ src = /* put a fetchurl here */
fetchurl { fetchurl {
url = http://downloads.sourceforge.net/gdmap/gdmap-0.8.1.tar.gz; url = http://downloads.sourceforge.net/gdmap/gdmap-0.8.1.tar.gz;
@ -8,7 +8,7 @@ args : with args;
buildInputs = [gtk pkgconfig libxml2 intltool gettext]; buildInputs = [gtk pkgconfig libxml2 intltool gettext];
configureFlags = []; configureFlags = [];
} null; /* null is a terminator for sumArgs */ };
in with localDefs; in with localDefs;
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "gdmap"+version; name = "gdmap"+version;

View File

@ -248,14 +248,13 @@ let pkgs = rec {
abort ("Unknown option specified: " + result)) abort ("Unknown option specified: " + result))
else x); else x);
builderDefs = lib.sumArgs (import ./builder-defs.nix) { builderDefs = composedArgsAndFun (import ./builder-defs.nix) {
inherit stringsWithDeps lib stdenv writeScript fetchurl; inherit stringsWithDeps lib stdenv writeScript fetchurl;
}; };
composedArgsAndFun = lib.composedArgsAndFun; composedArgsAndFun = lib.composedArgsAndFun;
builderDefsPackage = expr: composedArgsAndFun builderDefsPackage = builderDefs.builderDefsPackage builderDefs;
(((builderDefs null).builderDefsPackage builderDefs) expr);
stringsWithDeps = import ../lib/strings-with-deps.nix { stringsWithDeps = import ../lib/strings-with-deps.nix {
inherit stdenv lib; inherit stdenv lib;
@ -2547,6 +2546,9 @@ let pkgs = rec {
inherit fetchurl stdenv python; inherit fetchurl stdenv python;
}; };
clppcre = builderDefsPackage (import ../development/libraries/cl-ppcre) {
};
cluceneCore = (import ../development/libraries/clucene-core) { cluceneCore = (import ../development/libraries/clucene-core) {
inherit fetchurl stdenv; inherit fetchurl stdenv;
}; };
@ -6592,8 +6594,8 @@ let pkgs = rec {
inherit (xlibs) libXmu; inherit (xlibs) libXmu;
}; };
sndBase = composedArgsAndFun (import ../applications/audio/snd) { sndBase = builderDefsPackage (import ../applications/audio/snd) {
inherit fetchurl stdenv builderDefs stringsWithDeps lib fftw; inherit fetchurl stdenv stringsWithDeps lib fftw;
inherit pkgconfig gmp gettext; inherit pkgconfig gmp gettext;
inherit (xlibs) libXpm libX11; inherit (xlibs) libXpm libX11;
inherit (gtkLibs) gtk glib; inherit (gtkLibs) gtk glib;

View File

@ -458,8 +458,11 @@ args: with args; with stringsWithDeps; with lib;
extraDerivationAttrs = lib.getAttr ["extraDerivationAttrs"] {} args; extraDerivationAttrs = lib.getAttr ["extraDerivationAttrs"] {} args;
builderDefsPackage = bd: func: args: ( # for overrides..
let localDefs = bd (func ((bd null) // args)) args null; in builderDefsArgs = args;
innerBuilderDefsPackage = bd: func: args: (
let localDefs = bd.meta.function ((func (bd // args)) // args); in
stdenv.mkDerivation ((rec { stdenv.mkDerivation ((rec {
inherit (localDefs) name; inherit (localDefs) name;
@ -471,6 +474,9 @@ args: with args; with stringsWithDeps; with lib;
} else {}) // extraDerivationAttrs) } else {}) // extraDerivationAttrs)
); );
builderDefsPackage = bd: func: args: (composedArgsAndFun
(innerBuilderDefsPackage bd func) ((func (bd // args)) // args));
generateFontsFromSFD = noDepEntry('' generateFontsFromSFD = noDepEntry(''
for i in *.sfd; do for i in *.sfd; do
${args.fontforge}/bin/fontforge -c \ ${args.fontforge}/bin/fontforge -c \