2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, fetchgit, pkg-config, autoreconfHook
|
2020-04-24 23:36:52 +00:00
|
|
|
, libX11, pam, libgcrypt, libXrender, imlib2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2022-01-25 03:21:06 +00:00
|
|
|
pname = "alock";
|
|
|
|
version = "unstable-2017-07-20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchgit {
|
|
|
|
url = "https://github.com/Arkq/alock";
|
|
|
|
rev = "2035e1d4a2293432f5503e82d10f899232eb0f38";
|
|
|
|
sha256 = "1by954fjn0ryqda89zlmq3gclakg3gz7zy1wjrbgw4lzsk538va6";
|
|
|
|
};
|
|
|
|
|
|
|
|
PAM_DEFAULT_SERVICE = "login";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-pam"
|
|
|
|
"--enable-hash"
|
|
|
|
"--enable-xrender"
|
|
|
|
"--enable-imlib2"
|
|
|
|
];
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
|
|
|
autoreconfHook libX11
|
|
|
|
pam libgcrypt libXrender imlib2
|
|
|
|
];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Arkq/alock";
|
|
|
|
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
|
|
|
|
xscreensaver and never will. It's just for locking the current
|
|
|
|
X session.
|
|
|
|
'';
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ ftrvxmtrx chris-martin ];
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|