2008-11-04 21:24:10 +00:00
|
|
|
args : with args; let localDefs = builderDefs.passthru.function (args // rec {
|
2009-05-24 11:57:41 +01:00
|
|
|
version = lib.attrByPath ["version"] "5.07" args;
|
2008-06-15 18:10:42 +01:00
|
|
|
src = /* put a fetchurl here */
|
|
|
|
fetchurl {
|
2008-09-24 14:57:16 +01:00
|
|
|
url = "http://www.jwz.org/xscreensaver/xscreensaver-${version}.tar.gz";
|
|
|
|
sha256 = "1dmd9gwwqr4rnhxl71x1wn8j3xgijbpf6ydx42xzrzxi0x6afl4c";
|
2008-06-15 18:10:42 +01:00
|
|
|
};
|
|
|
|
useConfig = true;
|
|
|
|
reqsList = [
|
2009-05-17 21:33:58 +01:00
|
|
|
["true" "libX11" "pkgconfig" "bc" "perl" "intltool" "libXmu"]
|
2008-06-15 18:10:42 +01: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 06:54:09 +01:00
|
|
|
});
|
2008-06-15 18:10:42 +01:00
|
|
|
in with localDefs;
|
|
|
|
let
|
2009-05-20 00:25:58 +01:00
|
|
|
preConfigure = fullDepEntry ("
|
2008-06-15 18:10:42 +01:00
|
|
|
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' "+
|
|
|
|
"-i driver/Makefile.in po/Makefile.in.in;
|
2009-05-11 16:22:22 +01:00
|
|
|
") ["minInit" "doUnpack"];
|
2008-06-15 18:10:42 +01:00
|
|
|
in
|
|
|
|
stdenv.mkDerivation rec {
|
2009-03-03 13:27:40 +00:00
|
|
|
name = "xscreensaver-5.07";
|
2009-05-11 16:22:22 +01:00
|
|
|
buildCommand = textClosure localDefs
|
|
|
|
[preConfigure doConfigure doMakeInstall doForceShare doPropagate];
|
2008-06-15 18:10:42 +01:00
|
|
|
meta = {
|
2009-03-03 13:27:40 +00:00
|
|
|
description = "A set of screensavers";
|
2008-06-15 18:10:42 +01:00
|
|
|
inherit src;
|
2009-08-04 08:49:16 +01:00
|
|
|
maintainers = [stdenv.lib.maintainers.raskin];
|
2008-06-15 18:10:42 +01:00
|
|
|
};
|
|
|
|
}
|
2008-09-24 14:57:16 +01:00
|
|
|
|