summary refs log tree commit diff
path: root/pkgs/misc/screensavers/xtrlock-pam/default.nix
blob: 1aa1f347ab455c50d3b1e88a084ad1fbc0598d65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ stdenv, fetchgit, python, pkgconfig, xlibsWrapper, pam }:

stdenv.mkDerivation {
  name = "xtrlock-pam-3.4-post-20150909";

  src = fetchgit {
    url = "https://github.com/aanatoly/xtrlock-pam";
    rev = "6f4920fcfff54791c0779057e9efacbbbbc05df6";
    sha256 = "1z2wlhi5d05b18pvwz146kp0lkcc6z2mnilk01mk19hzbziyqmsc";
  };

  nativeBuildInputs = [ pkgconfig ];
  buildInputs = [ python 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 stdenv.lib.maintainers; [ tstrobel ];
    platforms = with stdenv.lib.platforms; linux;
  };
}