nixpkgs/pkgs/misc/screensavers/xtrlock-pam/default.nix

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

31 lines
935 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, python2, pkg-config, pam, xorg }:
2015-09-09 13:53:00 +00:00
stdenv.mkDerivation {
2021-08-12 21:00:21 +00:00
pname = "xtrlock-pam";
version = "3.4-post-20150909";
2015-09-09 13:53:00 +00:00
2022-03-09 09:26:01 +00:00
src = fetchFromGitHub {
owner = "aanatoly";
repo = "xtrlock-pam";
2015-09-09 13:53:00 +00:00
rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
2022-03-09 09:26:01 +00:00
sha256 = "sha256-TFfs418fpjBrAJNGW8U3jE0K7jQkfL4vCquAViKkXPw=";
2015-09-09 13:53:00 +00:00
};
2021-01-17 02:30:45 +00:00
nativeBuildInputs = [ pkg-config ];
buildInputs = [ python2 pam xorg.libX11 ];
2015-09-09 13:53:00 +00:00
configurePhase = ''
substituteInPlace .config/options.py --replace /usr/include/security/pam_appl.h ${pam}/include/security/pam_appl.h
substituteInPlace src/xtrlock.c --replace system-local-login xscreensaver
python configure --prefix=$out
'';
meta = {
homepage = "https://github.com/aanatoly/xtrlock-pam";
2015-09-09 13:53:00 +00:00
description = "PAM based X11 screen locker";
license = "unknown";
maintainers = with lib.maintainers; [ ];
2021-01-15 13:21:58 +00:00
platforms = with lib.platforms; linux;
2015-09-09 13:53:00 +00:00
};
}