2016-01-18 00:04:40 +01:00
|
|
|
{ stdenv, fetchgit, pkgconfig, 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 {
|
|
|
|
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
|
|
|
|
2017-09-14 21:24:37 +02:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
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
|
|
|
|
];
|
|
|
|
|
2017-07-19 03:50:45 +02:00
|
|
|
meta = with stdenv.lib; {
|
2014-09-15 23:16:21 +02: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
|
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-03-13 23:00:52 +01:00
|
|
|
platforms = platforms.unix; # Cygwin had problems at one point
|
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
|
|
|
};
|
|
|
|
}
|