2016-01-17 23:04:40 +00:00
|
|
|
{ stdenv, fetchgit, pkgconfig, 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 {
|
2020-04-01 02:11:51 +01:00
|
|
|
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
|
|
|
|
2017-09-14 20:24:37 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
2014-09-15 22:16:21 +01:00
|
|
|
buildInputs = [
|
2017-09-14 20:24:37 +01:00
|
|
|
autoreconfHook libX11
|
2014-09-15 22:16:21 +01:00
|
|
|
pam libgcrypt libXrender imlib2
|
|
|
|
];
|
|
|
|
|
2017-07-19 02:50:45 +01:00
|
|
|
meta = with stdenv.lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
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.
|
|
|
|
'';
|
2018-09-11 21:56:51 +01:00
|
|
|
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
|
|
|
};
|
|
|
|
}
|