2022-03-30 09:31:56 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python2, pkg-config, xlibsWrapper, pam }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-08-18 13:19:15 +00:00
|
|
|
pname = "xtrlock-pam";
|
|
|
|
version = "3.4-post-20150909";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aanatoly";
|
|
|
|
repo = "xtrlock-pam";
|
2020-04-24 23:36:52 +00:00
|
|
|
rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
|
2022-03-30 09:31:56 +00:00
|
|
|
sha256 = "sha256-TFfs418fpjBrAJNGW8U3jE0K7jQkfL4vCquAViKkXPw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-01-19 23:45:15 +00:00
|
|
|
buildInputs = [ python2 xlibsWrapper pam ];
|
2020-04-24 23:36:52 +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";
|
|
|
|
description = "PAM based X11 screen locker";
|
|
|
|
license = "unknown";
|
2021-01-17 00:15:33 +00:00
|
|
|
maintainers = with lib.maintainers; [ tstrobel ];
|
|
|
|
platforms = with lib.platforms; linux;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|