Unverified Commit a05c6975 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

Merge pull request #267789 from atorres1985-contrib/xscreensaver

xscreensaver: 6.06 -> 6.08
parents e5bad1e6 e4e7c30e
Loading
Loading
Loading
Loading
+12 −4
Original line number Diff line number Diff line
@@ -24,19 +24,21 @@
, perlPackages
, pkg-config
, systemd
, forceInstallAllHacks ? false
, forceInstallAllHacks ? true
, withSystemd ? lib.meta.availableOn stdenv.hostPlatform systemd
}:

stdenv.mkDerivation (finalAttrs: {
  pname = "xscreensaver";
  version = "6.06";
  version = "6.08";

  src = fetchurl {
    url = "https://www.jwz.org/xscreensaver/xscreensaver-${finalAttrs.version}.tar.gz";
    hash = "sha256-9TT6uFqDbeW4vo6R/CG4DKfWpO2ThuviB9S+ek50mac=";
    hash = "sha256-XPUrpSXO7PlLLyvWNIXr3zGOEvzA8q2tfUwQbYVedqM=";
  };

  outputs = [ "out" "man" ];

  nativeBuildInputs = [
    intltool
    makeWrapper
@@ -65,7 +67,13 @@ stdenv.mkDerivation (finalAttrs: {
    perlPackages.MozillaCA
    perlPackages.perl
  ]
  ++ lib.optional withSystemd systemd;
  ++ lib.optionals withSystemd [ systemd ];

  postPatch = ''
    pushd hacks
    patchShebangs check-configs.pl munge-ad.pl xml2man.pl
    popd
  '';

  preConfigure = ''
    # Fix installation paths for GTK resources.