1 { lib, stdenv, fetchurl, pam }:
3 stdenv.mkDerivation rec {
8 url = "mirror://debian/pool/main/v/vlock/vlock_${version}.orig.tar.gz";
9 sha256 = "1b9gv7hmlb8swda5bn40lp1yki8b8wv29vdnhcjqfl6ir98551za";
13 sed -i -e '/INSTALL/ {
14 s/-[og] [^ ]*//g; s/4711/755/
15 }' Makefile modules/Makefile
18 patches = [ ./eintr.patch ];
20 configureFlags = [ "VLOCK_GROUP=root" "ROOT_GROUP=root" ];
22 buildInputs = [ pam ];
25 description = "Virtual console locking program";
26 license = licenses.gpl2;
28 platforms = platforms.linux;
29 mainProgram = "vlock";