2008-11-04 22:24:10 +01:00
|
|
|
args : with args; let localDefs = builderDefs.passthru.function (args // rec {
|
2009-05-24 12:57:41 +02:00
|
|
|
version = lib.attrByPath ["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 = [
|
2009-05-17 22:33:58 +02:00
|
|
|
["true" "libX11" "pkgconfig" "bc" "perl" "intltool" "libXmu"]
|
2008-06-15 19:10:42 +02:00
|
|
|
["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
|
2009-05-20 01:25:58 +02:00
|
|
|
preConfigure = fullDepEntry ("
|
2008-06-15 19:10:42 +02:00
|
|
|
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' "+
|
|
|
|
"-i driver/Makefile.in po/Makefile.in.in;
|
2009-05-11 17:22:22 +02:00
|
|
|
") ["minInit" "doUnpack"];
|
2008-06-15 19:10:42 +02:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2009-03-03 14:27:40 +01:00
|
|
|
name = "xscreensaver-5.07";
|
2009-05-11 17:22:22 +02:00
|
|
|
buildCommand = textClosure localDefs
|
|
|
|
[preConfigure doConfigure doMakeInstall doForceShare doPropagate];
|
2008-06-15 19:10:42 +02:00
|
|
|
meta = {
|
2009-03-03 14:27:40 +01:00
|
|
|
description = "A set of screensavers";
|
2008-06-15 19:10:42 +02:00
|
|
|
inherit src;
|
|
|
|
};
|
|
|
|
}
|
2008-09-24 15:57:16 +02:00
|
|
|
|