2010-08-13 14:06:23 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, bc, perl, pam
|
|
|
|
, libXext, libXScrnSaver, libX11, libXrandr, libXmu, libXxf86vm, libXrender
|
|
|
|
, libXxf86misc
|
2011-02-14 13:44:01 +00:00
|
|
|
, libjpeg, mesa, gtk, libxml2, libglade
|
|
|
|
}:
|
2010-01-26 21:40:32 +00:00
|
|
|
|
2010-08-13 14:06:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2012-04-06 19:30:30 +00:00
|
|
|
version = "5.15";
|
2010-06-17 20:28:00 +00:00
|
|
|
name = "xscreensaver-${version}";
|
2010-01-26 21:40:32 +00:00
|
|
|
|
2010-08-13 14:06:23 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.jwz.org/xscreensaver/${name}.tar.gz";
|
2012-04-06 19:30:30 +00:00
|
|
|
sha256 = "4f6d1f1e4c15dbb74e2296f8fe57a73d47d602515178c248bbc838f779d5082d";
|
2010-01-26 21:40:32 +00:00
|
|
|
};
|
|
|
|
|
2010-08-13 14:06:23 +00:00
|
|
|
buildInputs =
|
|
|
|
[ pkgconfig bc perl libjpeg mesa gtk libxml2 libglade pam
|
2011-02-14 13:44:01 +00:00
|
|
|
libXext libXScrnSaver libX11 libXrandr libXmu libXxf86vm libXrender
|
|
|
|
libXxf86misc
|
|
|
|
];
|
2010-01-26 21:40:32 +00:00
|
|
|
|
|
|
|
configureFlags =
|
2011-02-14 13:44:01 +00:00
|
|
|
[ "--with-gl" "--with-pam" "--with-pixbuf" "--with-proc-interrupts"
|
2010-08-13 14:06:23 +00:00
|
|
|
"--with-dpms-ext" "--with-randr-ext" "--with-xinerama-ext"
|
|
|
|
"--with-xf86vmode-ext" "--with-xf86gamma-ext" "--with-randr-ext"
|
|
|
|
"--with-xshm-ext" "--with-xdbe-ext" "--without-readdisplay"
|
2010-06-18 19:33:15 +00:00
|
|
|
"--with-x-app-defaults=\${out}/share/xscreensaver/app-defaults"
|
2010-01-26 21:40:32 +00:00
|
|
|
];
|
|
|
|
|
2012-04-06 19:39:43 +00:00
|
|
|
preConfigure =
|
2010-01-26 21:40:32 +00:00
|
|
|
''
|
|
|
|
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' \
|
|
|
|
-i driver/Makefile.in po/Makefile.in.in
|
2010-08-13 14:06:23 +00:00
|
|
|
'';
|
2010-01-26 21:40:32 +00:00
|
|
|
|
|
|
|
meta = {
|
2012-04-06 19:30:30 +00:00
|
|
|
homepage = "http://www.jwz.org/xscreensaver/";
|
2010-01-26 21:40:32 +00:00
|
|
|
description = "A set of screensavers";
|
2010-08-13 14:06:23 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin urkud ];
|
|
|
|
platforms = stdenv.lib.platforms.allBut "i686-cygwin";
|
2010-01-26 21:40:32 +00:00
|
|
|
};
|
2010-08-13 14:06:23 +00:00
|
|
|
}
|