2008-11-04 22:24:10 +01:00
|
|
|
args : with args; let localDefs = builderDefs.passthru.function (args // rec {
|
2008-09-24 16:45:28 +02:00
|
|
|
version = lib.getAttr ["version"] "5.07" args;
|
2008-06-15 19:10:42 +02:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
2008-09-24 15:57:16 +02:00
|
|
|
url = "http://www.jwz.org/xscreensaver/xscreensaver-${version}.tar.gz";
|
|
|
|
sha256 = "1dmd9gwwqr4rnhxl71x1wn8j3xgijbpf6ydx42xzrzxi0x6afl4c";
|
2008-06-15 19:10:42 +02:00
|
|
|
};
|
|
|
|
useConfig = true;
|
|
|
|
reqsList = [
|
|
|
|
["true" "libX11" "gtk" "pkgconfig" "bc" "perl" "intltool" "libXmu"]
|
|
|
|
["GL" "mesa"]
|
|
|
|
["GUI" "gtk" "libxml2" "libglade"]
|
|
|
|
["jpeg" "libjpeg"]
|
|
|
|
["false"]
|
|
|
|
];
|
|
|
|
configFlags = [
|
|
|
|
"GL" " --with-gl "
|
|
|
|
"gdkpixbuf" " --with-pixbuf "
|
|
|
|
"DPMS" " --with-dpms "
|
|
|
|
"true" (" --with-x-app-defaults=\$out/share/xscreensaver/app-defaults "+
|
|
|
|
" --with-hackdir=\$out/share/xscreensaver-hacks ")
|
|
|
|
];
|
2008-08-19 07:54:09 +02:00
|
|
|
});
|
2008-06-15 19:10:42 +02:00
|
|
|
in with localDefs;
|
|
|
|
let
|
|
|
|
preConfigure = FullDepEntry ("
|
|
|
|
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' "+
|
|
|
|
"-i driver/Makefile.in po/Makefile.in.in;
|
|
|
|
") [minInit doUnpack];
|
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "xscreensaver-"+version;
|
|
|
|
builder = writeScript (name + "-builder")
|
|
|
|
(textClosure localDefs [preConfigure doConfigure doMakeInstall doForceShare doPropagate]);
|
|
|
|
meta = {
|
|
|
|
description = "
|
|
|
|
The X screensaver daemon. Run xscreensaver-demo to configure.
|
|
|
|
";
|
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|
2008-09-24 15:57:16 +02:00
|
|
|
|