2019-03-14 08:20:51 +00:00
|
|
|
{ stdenv, fetchurl, pkgconfig, bc, perl, perlPackages, pam, libXext, libXScrnSaver, libX11
|
2019-11-10 16:44:34 +00:00
|
|
|
, libXrandr, libXmu, libXxf86vm, libXrender, libXxf86misc, libjpeg, libGLU, libGL, gtk2
|
2020-08-02 18:44:46 +00:00
|
|
|
, libxml2, libglade, intltool, xorg, makeWrapper, gle, gdk-pixbuf, gdk-pixbuf-xlib
|
2016-06-10 15:51:18 +00:00
|
|
|
, forceInstallAllHacks ? false
|
2011-02-14 13:44:01 +00:00
|
|
|
}:
|
2010-01-26 21:40:32 +00:00
|
|
|
|
2010-08-13 14:06:23 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-03-26 06:13:34 +00:00
|
|
|
version = "5.44";
|
2019-07-06 00:20:54 +00:00
|
|
|
pname = "xscreensaver";
|
2010-01-26 21:40:32 +00:00
|
|
|
|
2010-08-13 14:06:23 +00:00
|
|
|
src = fetchurl {
|
2019-07-06 00:20:54 +00:00
|
|
|
url = "https://www.jwz.org/${pname}/${pname}-${version}.tar.gz";
|
2020-03-26 06:13:34 +00:00
|
|
|
sha256 = "15bv05vpfjwsrqbazrjmm382jd7vvw0mp6y9vasn6wvxzjf0in3k";
|
2010-01-26 21:40:32 +00:00
|
|
|
};
|
|
|
|
|
2010-08-13 14:06:23 +00:00
|
|
|
buildInputs =
|
2019-11-10 16:44:34 +00:00
|
|
|
[ pkgconfig bc perl libjpeg libGLU libGL gtk2 libxml2 libglade pam
|
2011-02-14 13:44:01 +00:00
|
|
|
libXext libXScrnSaver libX11 libXrandr libXmu libXxf86vm libXrender
|
2020-08-02 18:44:46 +00:00
|
|
|
libXxf86misc intltool xorg.appres makeWrapper gle gdk-pixbuf
|
|
|
|
gdk-pixbuf-xlib
|
2011-02-14 13:44:01 +00:00
|
|
|
];
|
2010-01-26 21:40:32 +00:00
|
|
|
|
2015-03-21 12:35:51 +00:00
|
|
|
preConfigure =
|
2012-07-17 10:14:41 +00:00
|
|
|
''
|
2015-03-21 12:35:51 +00:00
|
|
|
# Fix installation paths for GTK resources.
|
2012-07-17 10:14:41 +00:00
|
|
|
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' \
|
2015-03-21 12:35:51 +00:00
|
|
|
-i driver/Makefile.in po/Makefile.in.in
|
2012-07-17 10:14:41 +00:00
|
|
|
'';
|
|
|
|
|
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"
|
2016-06-10 12:51:19 +00:00
|
|
|
"--with-xshm-ext" "--with-xdbe-ext"
|
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
|
|
|
];
|
|
|
|
|
2016-05-09 05:12:46 +00:00
|
|
|
postInstall = ''
|
|
|
|
wrapProgram $out/bin/xscreensaver-text \
|
|
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [xorg.appres]}
|
2019-03-14 08:20:51 +00:00
|
|
|
wrapProgram $out/bin/xscreensaver-getimage-file \
|
|
|
|
--set PERL5LIB "$out/${perlPackages.perl.libPrefix}:${with perlPackages; makePerlPath [
|
|
|
|
EncodeLocale HTTPDate HTTPMessage IOSocketSSL LWP LWPProtocolHttps
|
|
|
|
MozillaCA NetHTTP NetSSLeay TryTiny URI
|
|
|
|
]}"
|
2016-06-10 15:51:18 +00:00
|
|
|
''
|
|
|
|
+ stdenv.lib.optionalString forceInstallAllHacks ''
|
|
|
|
make -C hacks/glx dnalogo
|
|
|
|
cat hacks/Makefile.in | grep -E '([a-z0-9]+):[[:space:]]*\1[.]o' | cut -d : -f 1 | xargs make -C hacks
|
|
|
|
cat hacks/glx/Makefile.in | grep -E '([a-z0-9]+):[[:space:]]*\1[.]o' | cut -d : -f 1 | xargs make -C hacks/glx
|
|
|
|
cp -f $(find hacks -type f -perm -111 "!" -name "*.*" ) "$out/libexec/xscreensaver"
|
|
|
|
''
|
|
|
|
;
|
2016-05-09 05:12:46 +00:00
|
|
|
|
2010-01-26 21:40:32 +00:00
|
|
|
meta = {
|
2020-03-26 06:13:34 +00:00
|
|
|
homepage = "https://www.jwz.org/xscreensaver/";
|
2010-01-26 21:40:32 +00:00
|
|
|
description = "A set of screensavers";
|
2017-03-27 17:11:17 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [ raskin ];
|
2018-03-13 22:00:52 +00:00
|
|
|
platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
|
2014-09-02 10:25:04 +00:00
|
|
|
inherit version;
|
2018-01-05 19:42:46 +00:00
|
|
|
downloadPage = "https://www.jwz.org/xscreensaver/download.html";
|
2014-09-02 10:25:04 +00:00
|
|
|
updateWalker = true;
|
2010-01-26 21:40:32 +00:00
|
|
|
};
|
2010-08-13 14:06:23 +00:00
|
|
|
}
|