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

46 lines
1.2 KiB
Nix
Raw Normal View History

2021-01-17 02:30:45 +00:00
{ lib, stdenv, fetchgit, pkg-config, autoreconfHook
2014-09-15 22:16:21 +01:00
, libX11, pam, libgcrypt, libXrender, imlib2 }:
stdenv.mkDerivation rec {
2017-07-20 20:44:40 +01:00
date = "20170720";
2014-09-15 22:16:21 +01:00
name = "alock-${date}";
src = fetchgit {
url = "https://github.com/Arkq/alock";
2017-07-20 20:44:40 +01:00
rev = "2035e1d4a2293432f5503e82d10f899232eb0f38";
sha256 = "1by954fjn0ryqda89zlmq3gclakg3gz7zy1wjrbgw4lzsk538va6";
2014-09-15 22:16:21 +01:00
};
2017-07-20 20:44:40 +01:00
PAM_DEFAULT_SERVICE = "login";
2014-09-15 22:16:21 +01:00
configureFlags = [
"--enable-pam"
"--enable-hash"
"--enable-xrender"
"--enable-imlib2"
];
2017-07-19 02:50:45 +01:00
2021-01-17 02:30:45 +00:00
nativeBuildInputs = [ pkg-config ];
2014-09-15 22:16:21 +01:00
buildInputs = [
autoreconfHook libX11
2014-09-15 22:16:21 +01:00
pam libgcrypt libXrender imlib2
];
meta = with lib; {
homepage = "https://github.com/Arkq/alock";
2014-09-15 22:16:21 +01:00
description = "Simple screen lock application for X server";
longDescription = ''
alock locks the X server until the user enters a password
via the keyboard. If the authentification was successful
the X server is unlocked and the user can continue to work.
alock does not provide any fancy animations like xlock or
2017-07-19 02:50:45 +01:00
xscreensaver and never will. It's just for locking the current
2014-09-15 22:16:21 +01:00
X session.
'';
platforms = platforms.linux;
2017-07-19 02:50:45 +01:00
maintainers = with maintainers; [ ftrvxmtrx chris-martin ];
2018-07-22 16:20:32 +01:00
license = licenses.mit;
2014-09-15 22:16:21 +01:00
};
}