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

43 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
, libX11, libXcomposite, libXft, libXmu, libXrandr, libXext, libXScrnSaver
, pam, apacheHttpd, pamtester, xscreensaver }:
2018-07-11 15:38:38 +00:00
stdenv.mkDerivation rec {
pname = "xsecurelock";
2020-01-17 12:37:14 +00:00
version = "1.7.0";
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}";
2020-01-17 12:37:14 +00:00
sha256 = "020y2mi4sshc5dghcz37aj5wwizbg6712rzq2a72f8z8m7mnxr5y";
2018-07-11 15:38:38 +00:00
};
2018-12-16 08:49:48 +00:00
nativeBuildInputs = [
autoreconfHook pkg-config
2018-12-16 08:49:48 +00:00
];
2018-07-11 15:38:38 +00:00
buildInputs = [
libX11 libXcomposite libXft libXmu libXrandr libXext libXScrnSaver
pam apacheHttpd pamtester
2018-07-11 15:38:38 +00:00
];
configureFlags = [
"--with-pam-service-name=login"
"--with-xscreensaver=${xscreensaver}/libexec/xscreensaver"
];
2018-12-16 08:49:48 +00:00
preConfigure = ''
cat > version.c <<'EOF'
const char *const git_version = "${version}";
EOF
'';
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";
2018-07-11 15:38:38 +00:00
license = licenses.asl20;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.unix;
};
}