2021-01-17 03:30:45 +01:00
|
|
|
{ lib, stdenv, fetchgit, pkg-config, autoreconfHook
|
2014-09-15 23:16:21 +02:00
|
|
|
, libX11, pam, libgcrypt, libXrender, imlib2 }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2017-07-20 21:44:40 +02:00
|
|
|
date = "20170720";
|
2014-09-15 23:16:21 +02:00
|
|
|
name = "alock-${date}";
|
|
|
|
|
|
|
|
src = fetchgit {
|
2020-04-01 03:11:51 +02:00
|
|
|
url = "https://github.com/Arkq/alock";
|
2017-07-20 21:44:40 +02:00
|
|
|
rev = "2035e1d4a2293432f5503e82d10f899232eb0f38";
|
|
|
|
sha256 = "1by954fjn0ryqda89zlmq3gclakg3gz7zy1wjrbgw4lzsk538va6";
|
2014-09-15 23:16:21 +02:00
|
|
|
};
|
|
|
|
|
2017-07-20 21:44:40 +02:00
|
|
|
PAM_DEFAULT_SERVICE = "login";
|
|
|
|
|
2014-09-15 23:16:21 +02:00
|
|
|
configureFlags = [
|
|
|
|
"--enable-pam"
|
|
|
|
"--enable-hash"
|
|
|
|
"--enable-xrender"
|
|
|
|
"--enable-imlib2"
|
|
|
|
];
|
2017-07-19 03:50:45 +02:00
|
|
|
|
2021-01-17 03:30:45 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2014-09-15 23:16:21 +02:00
|
|
|
buildInputs = [
|
2017-09-14 21:24:37 +02:00
|
|
|
autoreconfHook libX11
|
2014-09-15 23:16:21 +02:00
|
|
|
pam libgcrypt libXrender imlib2
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/Arkq/alock";
|
2014-09-15 23:16:21 +02: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 03:50:45 +02:00
|
|
|
xscreensaver and never will. It's just for locking the current
|
2014-09-15 23:16:21 +02:00
|
|
|
X session.
|
|
|
|
'';
|
2018-09-11 22:56:51 +02:00
|
|
|
platforms = platforms.linux;
|
2017-07-19 03:50:45 +02:00
|
|
|
maintainers = with maintainers; [ ftrvxmtrx chris-martin ];
|
2018-07-22 17:20:32 +02:00
|
|
|
license = licenses.mit;
|
2014-09-15 23:16:21 +02:00
|
|
|
};
|
|
|
|
}
|