depot/third_party/nixpkgs/pkgs/misc/screensavers/xtrlock-pam/default.nix
Default email 92b3d6365d Project import generated by Copybara.
GitOrigin-RevId: 412b9917cea092f3d39f9cd5dead4effd5bc4053
2022-10-30 16:09:59 +01:00

30 lines
935 B
Nix

{ lib, stdenv, fetchFromGitHub, python2, pkg-config, pam, xorg }:
stdenv.mkDerivation {
pname = "xtrlock-pam";
version = "3.4-post-20150909";
src = fetchFromGitHub {
owner = "aanatoly";
repo = "xtrlock-pam";
rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
sha256 = "sha256-TFfs418fpjBrAJNGW8U3jE0K7jQkfL4vCquAViKkXPw=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [ python2 pam xorg.libX11 ];
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; [ ];
platforms = with lib.platforms; linux;
};
}