nixpkgs/pkgs/misc/screensavers/vlock/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

32 lines
702 B
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, pam }:
2021-08-12 21:00:21 +00:00
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 ];
2018-07-25 21:44:21 +00:00
configureFlags = [ "VLOCK_GROUP=root" "ROOT_GROUP=root" ];
buildInputs = [ pam ];
meta = with lib; {
description = "Virtual console locking program";
license = licenses.gpl2;
maintainers = [ ];
platforms = platforms.linux;
2023-08-22 09:56:20 +00:00
mainProgram = "vlock";
};
}