diff --git a/pkgs/misc/screensavers/vlock/default.nix b/pkgs/misc/screensavers/vlock/default.nix new file mode 100644 index 00000000000..f2cea3f257b --- /dev/null +++ b/pkgs/misc/screensavers/vlock/default.nix @@ -0,0 +1,22 @@ +{ 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' Makefile modules/Makefile + ''; + + configureFlags = "VLOCK_GROUP=root ROOT_GROUP=root"; + + buildInputs = [ pam ]; + + meta = { + description = "Virtual console locking program"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7c69aed3ee7..b5d09a3a991 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -4747,6 +4747,8 @@ let inherit (pkgs.pythonPackages) numpy; }; + vlock = callPackage ../misc/screensavers/vlock { }; + vmime = callPackage ../development/libraries/vmime { }; vrpn = callPackage ../development/libraries/vrpn { };