1 { lib, stdenv, fetchFromGitHub, python39, pkg-config, pam, xorg }:
5 version = "3.4-post-20150909";
7 src = fetchFromGitHub {
10 rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
11 sha256 = "sha256-TFfs418fpjBrAJNGW8U3jE0K7jQkfL4vCquAViKkXPw=";
14 nativeBuildInputs = [ pkg-config ];
15 buildInputs = [ python39 pam xorg.libX11 ];
18 substituteInPlace .config/options.py --replace /usr/include/security/pam_appl.h ${pam}/include/security/pam_appl.h
19 substituteInPlace src/xtrlock.c --replace system-local-login xscreensaver
20 python configure --prefix=$out
24 homepage = "https://github.com/aanatoly/xtrlock-pam";
25 description = "PAM based X11 screen locker";
27 maintainers = with lib.maintainers; [ ondt ];
28 platforms = with lib.platforms; linux;