xscreensaver: 6.04 -> 6.06

This commit is contained in:
Anderson Torres 2023-04-22 12:57:26 -03:00
parent fdfe91e78f
commit 62bd961440

View File

@ -1,32 +1,71 @@
{ lib, stdenv, fetchurl, makeWrapper { lib
, pkg-config, intltool , stdenv
, perl, perlPackages, gettext, libX11, libXext, libXi, libXt , fetchurl
, libXft, libXinerama, libXrandr, libXxf86vm, libGL, libGLU, gle , coreutils
, gtk2, gdk-pixbuf, gdk-pixbuf-xlib, libxml2, pam , gdk-pixbuf
, systemd, coreutils , gdk-pixbuf-xlib
, gettext
, gle
, gtk3
, intltool
, libGL
, libGLU
, libX11
, libXext
, libXft
, libXi
, libXinerama
, libXrandr
, libXt
, libXxf86vm
, libxml2
, makeWrapper
, pam
, perlPackages
, pkg-config
, systemd
, forceInstallAllHacks ? false , forceInstallAllHacks ? false
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd , withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
}: }:
stdenv.mkDerivation rec { stdenv.mkDerivation (finalAttrs: {
version = "6.04";
pname = "xscreensaver"; pname = "xscreensaver";
version = "6.06";
src = fetchurl { src = fetchurl {
url = "https://www.jwz.org/${pname}/${pname}-${version}.tar.gz"; url = "https://www.jwz.org/xscreensaver/xscreensaver-${finalAttrs.version}.tar.gz";
sha256 = "sha256-eHAUsp8MV5Pswtk+EQmgSf9IqwwpuFHas09oPO72sVI="; hash = "sha256-9TT6uFqDbeW4vo6R/CG4DKfWpO2ThuviB9S+ek50mac=";
}; };
nativeBuildInputs = [ nativeBuildInputs = [
pkg-config intltool makeWrapper intltool
makeWrapper
pkg-config
]; ];
buildInputs = [ buildInputs = [
perl gettext libX11 libXext libXi libXt gdk-pixbuf
libXft libXinerama libXrandr libXxf86vm libGL libGLU gle gdk-pixbuf-xlib
gtk2 gdk-pixbuf gdk-pixbuf-xlib libxml2 pam gettext
perlPackages.LWPProtocolHttps perlPackages.MozillaCA gle
] ++ lib.optional withSystemd systemd; gtk3
libGL
libGLU
libX11
libXext
libXft
libXi
libXinerama
libXrandr
libXt
libXxf86vm
libxml2
pam
perlPackages.LWPProtocolHttps
perlPackages.MozillaCA
perlPackages.perl
]
++ lib.optional withSystemd systemd;
preConfigure = '' preConfigure = ''
# Fix installation paths for GTK resources. # Fix installation paths for GTK resources.
@ -45,10 +84,11 @@ stdenv.mkDerivation rec {
for bin in $out/bin/*; do for bin in $out/bin/*; do
wrapProgram "$bin" \ wrapProgram "$bin" \
--prefix PATH : "$out/libexec/xscreensaver" \ --prefix PATH : "$out/libexec/xscreensaver" \
--prefix PATH : "${lib.makeBinPath [ coreutils perl ]}" \ --prefix PATH : "${lib.makeBinPath [ coreutils perlPackages.perl ]}" \
--prefix PERL5LIB ':' $PERL5LIB --prefix PERL5LIB ':' $PERL5LIB
done done
'' + lib.optionalString forceInstallAllHacks '' ''
+ lib.optionalString forceInstallAllHacks ''
make -j$NIX_BUILD_CORES -C hacks/glx dnalogo make -j$NIX_BUILD_CORES -C hacks/glx dnalogo
cat hacks/Makefile.in \ cat hacks/Makefile.in \
| grep -E '([a-z0-9]+):[[:space:]]*\1[.]o' | cut -d : -f 1 | xargs make -j$NIX_BUILD_CORES -C hacks | grep -E '([a-z0-9]+):[[:space:]]*\1[.]o' | cut -d : -f 1 | xargs make -j$NIX_BUILD_CORES -C hacks
@ -60,9 +100,9 @@ stdenv.mkDerivation rec {
meta = { meta = {
homepage = "https://www.jwz.org/xscreensaver/"; homepage = "https://www.jwz.org/xscreensaver/";
description = "A set of screensavers"; description = "A set of screensavers";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ raskin ];
platforms = lib.platforms.unix; # Once had cygwin problems
downloadPage = "https://www.jwz.org/xscreensaver/download.html"; downloadPage = "https://www.jwz.org/xscreensaver/download.html";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ raskin AndersonTorres ];
platforms = lib.platforms.unix;
}; };
} })