xsecurelock: hardcode path to xset

This commit is contained in:
Franz Pletz 2018-10-11 02:06:16 +02:00
parent cf440dae56
commit c04e6e04e2
No known key found for this signature in database
GPG Key ID: 846FDED7792617B4
2 changed files with 9 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
, libX11, libXcomposite, libXft, libXmu, pam, apacheHttpd, imagemagick
, pamtester, xscreensaver }:
, pamtester, xscreensaver, xset }:
stdenv.mkDerivation rec {
name = "xsecurelock-${version}";
@ -24,6 +24,11 @@ stdenv.mkDerivation rec {
"--with-xscreensaver=${xscreensaver}/libexec/xscreensaver"
];
preInstall = ''
substituteInPlace helpers/saver_blank \
--replace 'protect xset' 'protect ${xset}/bin/xset'
'';
meta = with lib; {
description = "X11 screen lock utility with security in mind";
homepage = https://github.com/google/xsecurelock;

View File

@ -6212,7 +6212,9 @@ with pkgs;
libxml2 = libxml2Python;
};
xsecurelock = callPackage ../tools/X11/xsecurelock { };
xsecurelock = callPackage ../tools/X11/xsecurelock {
xset = xorg.xset;
};
xsel = callPackage ../tools/misc/xsel { };