2024-05-15 15:35:15 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, gitUpdater, 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";
|
2024-05-15 15:35:15 +00:00
|
|
|
version = "2.5.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Arkq";
|
|
|
|
repo = "alock";
|
2024-05-15 15:35:15 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-xfPhsXZrTlEqea75SvacDfjM9o21MTudrqfNN9xtdcg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
PAM_DEFAULT_SERVICE = "login";
|
|
|
|
|
|
|
|
configureFlags = [
|
|
|
|
"--enable-pam"
|
|
|
|
"--enable-hash"
|
|
|
|
"--enable-xrender"
|
|
|
|
"--enable-imlib2"
|
|
|
|
];
|
|
|
|
|
2022-10-21 18:38:19 +00:00
|
|
|
nativeBuildInputs = [ pkg-config autoreconfHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs = [
|
2022-10-21 18:38:19 +00:00
|
|
|
libX11
|
2020-04-24 23:36:52 +00:00
|
|
|
pam libgcrypt libXrender imlib2
|
|
|
|
];
|
|
|
|
|
2024-05-15 15:35:15 +00:00
|
|
|
passthru.updateScript = gitUpdater {
|
|
|
|
rev-prefix = "v";
|
|
|
|
ignoredVersions = "^[^.]+$"; # ignore versions without a dot
|
|
|
|
};
|
|
|
|
|
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";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "alock";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
alock locks the X server until the user enters a password
|
2022-12-28 21:21:41 +00:00
|
|
|
via the keyboard. If the authentication was successful
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|