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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

49 lines
1.3 KiB
Nix
Raw Permalink Normal View History

{ lib, stdenv, fetchFromGitHub, autoreconfHook, pkg-config
, libX11, libXcomposite, libXft, libXmu, libXrandr, libXext, libXScrnSaver
, pam, apacheHttpd, pamtester, xscreensaver, coreutils, makeWrapper }:
2018-07-11 17:38:38 +02:00
stdenv.mkDerivation rec {
pname = "xsecurelock";
version = "1.9.0";
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}";
sha256 = "sha256-OPasi5zmvmcWnVCj/dU2KprzNmar51zDElD23750yk4=";
2018-07-11 17:38:38 +02:00
};
2018-12-16 09:49:48 +01:00
nativeBuildInputs = [
autoreconfHook pkg-config makeWrapper
2018-12-16 09:49:48 +01:00
];
2018-07-11 17:38:38 +02:00
buildInputs = [
libX11 libXcomposite libXft libXmu libXrandr libXext libXScrnSaver
pam apacheHttpd 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
'';
postInstall = ''
wrapProgram $out/libexec/xsecurelock/saver_blank --prefix PATH : ${coreutils}/bin
'';
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";
2018-07-11 17:38:38 +02:00
license = licenses.asl20;
maintainers = with maintainers; [ fpletz ];
platforms = platforms.unix;
2023-10-06 04:59:25 +02:00
mainProgram = "xsecurelock";
2018-07-11 17:38:38 +02:00
};
}