nixpkgs-suyu/pkgs/misc/screensavers/xtrlock-pam/default.nix
Robert Schütz d5cceedbd1 python,pythonPackages: make aliases
Since aliases are disallowed in nixpkgs, this makes usage of Python 2
which is EOL more explicit.
2022-01-16 18:39:59 +00:00

29 lines
943 B
Nix

{ lib, stdenv, fetchgit, python2, pkg-config, xlibsWrapper, pam }:
stdenv.mkDerivation {
pname = "xtrlock-pam";
version = "3.4-post-20150909";
src = fetchgit {
url = "https://github.com/aanatoly/xtrlock-pam";
rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
sha256 = "1z2wlhi5d05b18pvwz146kp0lkcc6z2mnilk01mk19hzbziyqmsc";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ python2 xlibsWrapper pam ];
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 lib.maintainers; [ tstrobel ];
platforms = with lib.platforms; linux;
};
}