mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
27ca928dc8
Semi-automatic update generated by https://github.com/ryantm/nixpkgs-update tools. This update was made based on information from https://repology.org/metapackage/xscreensaver/versions. These checks were done: - built on NixOS - Warning: no binary found that responded to help or version flags. (This warning appears even if the package isn't expected to have binaries.) - found 5.39 with grep in /nix/store/gbzmzb9nq2frp4q1mmz2946gzcx536v3-xscreensaver-5.39 - directory tree listing: https://gist.github.com/aa36e0385c0160a833c83693ce83be28
59 lines
2.1 KiB
Nix
59 lines
2.1 KiB
Nix
{ stdenv, fetchurl, pkgconfig, bc, perl, pam, libXext, libXScrnSaver, libX11
|
|
, libXrandr, libXmu, libXxf86vm, libXrender, libXxf86misc, libjpeg, libGLU_combined, gtk2
|
|
, libxml2, libglade, intltool, xorg, makeWrapper, gle
|
|
, forceInstallAllHacks ? false
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "5.39";
|
|
name = "xscreensaver-${version}";
|
|
|
|
src = fetchurl {
|
|
url = "https://www.jwz.org/xscreensaver/${name}.tar.gz";
|
|
sha256 = "09i47h4hdgwxyqgrsnshl4l5dv5mrsp37h705cc22lwby601ikj8";
|
|
};
|
|
|
|
buildInputs =
|
|
[ pkgconfig bc perl libjpeg libGLU_combined gtk2 libxml2 libglade pam
|
|
libXext libXScrnSaver libX11 libXrandr libXmu libXxf86vm libXrender
|
|
libXxf86misc intltool xorg.appres makeWrapper gle
|
|
];
|
|
|
|
preConfigure =
|
|
''
|
|
# Fix installation paths for GTK resources.
|
|
sed -e 's%@GTK_DATADIR@%@datadir@% ; s%@PO_DATADIR@%@datadir@%' \
|
|
-i driver/Makefile.in po/Makefile.in.in
|
|
'';
|
|
|
|
configureFlags =
|
|
[ "--with-gl" "--with-pam" "--with-pixbuf" "--with-proc-interrupts"
|
|
"--with-dpms-ext" "--with-randr-ext" "--with-xinerama-ext"
|
|
"--with-xf86vmode-ext" "--with-xf86gamma-ext" "--with-randr-ext"
|
|
"--with-xshm-ext" "--with-xdbe-ext"
|
|
"--with-x-app-defaults=\${out}/share/xscreensaver/app-defaults"
|
|
];
|
|
|
|
postInstall = ''
|
|
wrapProgram $out/bin/xscreensaver-text \
|
|
--prefix PATH : ${stdenv.lib.makeBinPath [xorg.appres]}
|
|
''
|
|
+ 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"
|
|
''
|
|
;
|
|
|
|
meta = {
|
|
homepage = https://www.jwz.org/xscreensaver/;
|
|
description = "A set of screensavers";
|
|
maintainers = with stdenv.lib.maintainers; [ raskin ];
|
|
platforms = stdenv.lib.platforms.unix; # Once had cygwin problems
|
|
inherit version;
|
|
downloadPage = "https://www.jwz.org/xscreensaver/download.html";
|
|
updateWalker = true;
|
|
};
|
|
}
|