2022-03-09 09:26:01 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, python2, pkg-config, xlibsWrapper, pam }:
|
2015-09-09 14:53:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
2021-08-12 22:00:21 +01:00
|
|
|
pname = "xtrlock-pam";
|
|
|
|
version = "3.4-post-20150909";
|
2015-09-09 14:53:00 +01:00
|
|
|
|
2022-03-09 09:26:01 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "aanatoly";
|
|
|
|
repo = "xtrlock-pam";
|
2015-09-09 14:53:00 +01:00
|
|
|
rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
|
2022-03-09 09:26:01 +00:00
|
|
|
sha256 = "sha256-TFfs418fpjBrAJNGW8U3jE0K7jQkfL4vCquAViKkXPw=";
|
2015-09-09 14:53:00 +01:00
|
|
|
};
|
|
|
|
|
2021-01-17 02:30:45 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2022-01-11 23:40:02 +00:00
|
|
|
buildInputs = [ python2 xlibsWrapper pam ];
|
2015-09-09 14:53:00 +01: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 = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/aanatoly/xtrlock-pam";
|
2015-09-09 14:53:00 +01:00
|
|
|
description = "PAM based X11 screen locker";
|
|
|
|
license = "unknown";
|
2022-06-23 00:40:02 +01:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2021-01-15 13:21:58 +00:00
|
|
|
platforms = with lib.platforms; linux;
|
2015-09-09 14:53:00 +01:00
|
|
|
};
|
|
|
|
}
|