pytrainer: unpin python 3.10
[NixPkgs.git] / pkgs / misc / screensavers / xtrlock-pam / default.nix
blob7c3bba246cb72465b2878b0eafec1e057a12be56
1 { lib, stdenv, fetchFromGitHub, python39, pkg-config, pam, xorg }:
3 stdenv.mkDerivation {
4   pname = "xtrlock-pam";
5   version = "3.4-post-20150909";
7   src = fetchFromGitHub {
8     owner = "aanatoly";
9     repo = "xtrlock-pam";
10     rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
11     sha256 = "sha256-TFfs418fpjBrAJNGW8U3jE0K7jQkfL4vCquAViKkXPw=";
12   };
14   nativeBuildInputs = [ pkg-config ];
15   buildInputs = [ python39 pam xorg.libX11 ];
17   configurePhase = ''
18     substituteInPlace .config/options.py --replace /usr/include/security/pam_appl.h ${pam}/include/security/pam_appl.h
19     substituteInPlace src/xtrlock.c --replace system-local-login xscreensaver
20     python configure --prefix=$out
21   '';
23   meta = {
24     homepage = "https://github.com/aanatoly/xtrlock-pam";
25     description = "PAM based X11 screen locker";
26     license = "unknown";
27     maintainers = with lib.maintainers; [ ondt ];
28     platforms = with lib.platforms; linux;
29   };