nixpkgs/pkgs/tools/X11/xsecurelock/default.nix

40 lines
1.1 KiB
Nix
Raw Normal View History

2018-07-11 15:38:38 +00:00
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
2018-09-22 20:38:44 +00:00
, libX11, libXcomposite, libXft, libXmu, pam, apacheHttpd, imagemagick
2018-10-11 00:06:16 +00:00
, pamtester, xscreensaver, xset }:
2018-07-11 15:38:38 +00:00
stdenv.mkDerivation rec {
2018-08-13 21:31:12 +00:00
name = "xsecurelock-${version}";
2018-09-22 20:38:44 +00:00
version = "1.1";
2018-07-11 15:38:38 +00:00
src = fetchFromGitHub {
owner = "google";
repo = "xsecurelock";
2018-08-13 21:31:12 +00:00
rev = "v${version}";
2018-09-22 20:38:44 +00:00
sha256 = "0yqp5xhkl9jpjyrmrxbyp7azwxmqc3lxv5lxrjqjaapl3q3096g5";
2018-07-11 15:38:38 +00:00
};
nativeBuildInputs = [ autoreconfHook pkgconfig ];
buildInputs = [
2018-09-22 20:38:44 +00:00
libX11 libXcomposite libXft libXmu pam
2018-07-11 15:38:38 +00:00
apacheHttpd imagemagick pamtester
];
configureFlags = [
"--with-pam-service-name=login"
"--with-xscreensaver=${xscreensaver}/libexec/xscreensaver"
];
2018-10-11 00:06:16 +00:00
preInstall = ''
substituteInPlace helpers/saver_blank \
--replace 'protect xset' 'protect ${xset}/bin/xset'
'';
2018-07-11 15:38:38 +00:00
meta = with lib; {
description = "X11 screen lock utility with security in mind";
homepage = https://github.com/google/xsecurelock;
license = licenses.asl20;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.unix;
};
}