5e7c2d6cef
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
31 lines
702 B
Nix
31 lines
702 B
Nix
{ lib, stdenv, fetchurl, pam }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "vlock";
|
|
version = "2.2.2";
|
|
|
|
src = fetchurl {
|
|
url = "mirror://debian/pool/main/v/vlock/vlock_${version}.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 lib; {
|
|
description = "Virtual console locking program";
|
|
license = licenses.gpl2;
|
|
maintainers = [ ];
|
|
platforms = platforms.linux;
|
|
mainProgram = "vlock";
|
|
};
|
|
}
|