2008-11-04 21:24:10 +00:00
|
|
|
args : with args; let localDefs = builderDefs.passthru.function (args // rec {
|
2009-09-24 18:15:06 +01:00
|
|
|
version = lib.attrByPath ["version"] "5.10" 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";
|
2009-09-24 18:15:06 +01:00
|
|
|
sha256 = "07zy157wqwgcapqycyv89yabxa8byk4p8jn3zlvhf7lx5w1xmval";
|
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;
|
2009-09-24 18:15:06 +01:00
|
|
|
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-09-24 18:15:06 +01:00
|
|
|
name = "xscreensaver-5.10";
|
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];
|
2009-09-17 06:19:57 +01:00
|
|
|
platforms = stdenv.lib.platforms.allBut "i686-cygwin";
|
2008-06-15 18:10:42 +01:00
|
|
|
};
|
|
|
|
}
|