2018-07-11 17:38:38 +02:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkgconfig
|
2019-03-02 03:11:06 +01:00
|
|
|
, libX11, libXcomposite, libXft, libXmu, libXrandr, libXext, libXScrnSaver
|
|
|
|
, pam, apacheHttpd, imagemagick, pamtester, xscreensaver, xset }:
|
2018-07-11 17:38:38 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "xsecurelock";
|
2019-09-29 13:56:36 +02:00
|
|
|
version = "1.5.1";
|
2018-07-11 17:38:38 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "google";
|
|
|
|
repo = "xsecurelock";
|
2018-08-13 23:31:12 +02:00
|
|
|
rev = "v${version}";
|
2019-09-29 13:56:36 +02:00
|
|
|
sha256 = "1if8byaby18ydkrk4k5yy8n0981x1dfqikq59gfpb7c2rv0vgi7i";
|
2018-07-11 17:38:38 +02:00
|
|
|
};
|
|
|
|
|
2018-12-16 09:49:48 +01:00
|
|
|
nativeBuildInputs = [
|
|
|
|
autoreconfHook pkgconfig
|
|
|
|
];
|
2018-07-11 17:38:38 +02:00
|
|
|
buildInputs = [
|
2019-03-02 03:11:06 +01:00
|
|
|
libX11 libXcomposite libXft libXmu libXrandr libXext libXScrnSaver
|
|
|
|
pam apacheHttpd imagemagick pamtester
|
2018-07-11 17:38:38 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--with-pam-service-name=login"
|
|
|
|
"--with-xscreensaver=${xscreensaver}/libexec/xscreensaver"
|
|
|
|
];
|
|
|
|
|
2018-12-16 09:49:48 +01:00
|
|
|
preConfigure = ''
|
|
|
|
cat > version.c <<'EOF'
|
|
|
|
const char *const git_version = "${version}";
|
|
|
|
EOF
|
|
|
|
'';
|
|
|
|
|
2018-10-11 02:06:16 +02:00
|
|
|
preInstall = ''
|
|
|
|
substituteInPlace helpers/saver_blank \
|
|
|
|
--replace 'protect xset' 'protect ${xset}/bin/xset'
|
|
|
|
'';
|
|
|
|
|
2018-07-11 17:38:38 +02: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;
|
|
|
|
};
|
|
|
|
}
|