2015-09-15 10:13:22 +01:00
|
|
|
{ stdenv, fetchgit, python, pkgconfig, xlibsWrapper, pam }:
|
2015-09-09 14:53:00 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "xtrlock-pam-3.4-post-20150909";
|
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/aanatoly/xtrlock-pam";
|
|
|
|
rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
|
2016-06-02 12:26:44 +01:00
|
|
|
sha256 = "1z2wlhi5d05b18pvwz146kp0lkcc6z2mnilk01mk19hzbziyqmsc";
|
2015-09-09 14:53:00 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ python 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 = {
|
|
|
|
homepage = https://github.com/aanatoly/xtrlock-pam;
|
|
|
|
description = "PAM based X11 screen locker";
|
|
|
|
license = "unknown";
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ tstrobel ];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|