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