summary refs log tree commit diff
path: root/pkgs/misc/screensavers/vlock/default.nix
blob: 83d82e2b3b34c1ae70301ffc5992eeef3927af62 (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
29
{ stdenv, fetchurl, pam }:

stdenv.mkDerivation {
  name = "vlock-2.2.2";
  src = fetchurl
  {
    url = "mirror://debian/pool/main/v/vlock/vlock_2.2.2.orig.tar.gz";
    sha256 = "1b9gv7hmlb8swda5bn40lp1yki8b8wv29vdnhcjqfl6ir98551za";
  };

  prePatch = ''
    sed -i -e '/INSTALL/ {
      s/-[og] [^ ]*//g; s/4711/755/
    }' Makefile modules/Makefile
  '';

  patches = [ ./eintr.patch ];

  configureFlags = [ "VLOCK_GROUP=root" "ROOT_GROUP=root" ];

  buildInputs = [ pam ];

  meta = with stdenv.lib; {
    description = "Virtual console locking program";
    license = licenses.gpl2;
    maintainers = [ maintainers.lethalman ];
    platforms = platforms.linux;
  };
}