From 47304663666056fb3a01ee6e9a9c3ee476a928e1 Mon Sep 17 00:00:00 2001 From: Ihar Hrachyshka Date: Thu, 14 Mar 2019 01:20:51 -0700 Subject: [PATCH] xscreensaver: Enable perl modules needed for RSS image fetch (#57629) --- pkgs/misc/screensavers/xscreensaver/default.nix | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/pkgs/misc/screensavers/xscreensaver/default.nix b/pkgs/misc/screensavers/xscreensaver/default.nix index f088b176c504..6a9dfaef497a 100644 --- a/pkgs/misc/screensavers/xscreensaver/default.nix +++ b/pkgs/misc/screensavers/xscreensaver/default.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, pkgconfig, bc, perl, pam, libXext, libXScrnSaver, libX11 +{ stdenv, fetchurl, pkgconfig, bc, perl, perlPackages, pam, libXext, libXScrnSaver, libX11 , libXrandr, libXmu, libXxf86vm, libXrender, libXxf86misc, libjpeg, libGLU_combined, gtk2 , libxml2, libglade, intltool, xorg, makeWrapper, gle , forceInstallAllHacks ? false @@ -37,6 +37,11 @@ stdenv.mkDerivation rec { postInstall = '' wrapProgram $out/bin/xscreensaver-text \ --prefix PATH : ${stdenv.lib.makeBinPath [xorg.appres]} + 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 + ]}" '' + stdenv.lib.optionalString forceInstallAllHacks '' make -C hacks/glx dnalogo