nixpkgs/pkgs/misc/screensavers/alock/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

48 lines
1.3 KiB
Nix
Raw Normal View History

2022-03-09 09:26:15 +00:00
{ lib, stdenv, fetchFromGitHub, pkg-config, autoreconfHook
2014-09-15 21:16:21 +00:00
, libX11, pam, libgcrypt, libXrender, imlib2 }:
stdenv.mkDerivation rec {
2022-01-22 17:13:29 +00:00
pname = "alock";
version = "unstable-2017-07-20";
2014-09-15 21:16:21 +00:00
2022-03-09 09:26:15 +00:00
src = fetchFromGitHub {
owner = "Arkq";
repo = "alock";
2017-07-20 19:44:40 +00:00
rev = "2035e1d4a2293432f5503e82d10f899232eb0f38";
2022-03-09 09:26:15 +00:00
sha256 = "sha256-Rm00ytSfEv5Wljz4f/4bbyrK3sCV/oRUwz4DKx0pya8=";
2014-09-15 21:16:21 +00:00
};
2017-07-20 19:44:40 +00:00
PAM_DEFAULT_SERVICE = "login";
2014-09-15 21:16:21 +00:00
configureFlags = [
"--enable-pam"
"--enable-hash"
"--enable-xrender"
"--enable-imlib2"
];
2017-07-19 01:50:45 +00:00
nativeBuildInputs = [ pkg-config autoreconfHook ];
2014-09-15 21:16:21 +00:00
buildInputs = [
libX11
2014-09-15 21:16:21 +00:00
pam libgcrypt libXrender imlib2
];
meta = with lib; {
homepage = "https://github.com/Arkq/alock";
2014-09-15 21:16:21 +00:00
description = "Simple screen lock application for X server";
mainProgram = "alock";
2014-09-15 21:16:21 +00:00
longDescription = ''
alock locks the X server until the user enters a password
2022-12-18 00:39:44 +00:00
via the keyboard. If the authentication was successful
2014-09-15 21:16:21 +00:00
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 01:50:45 +00:00
xscreensaver and never will. It's just for locking the current
2014-09-15 21:16:21 +00:00
X session.
'';
platforms = platforms.linux;
2017-07-19 01:50:45 +00:00
maintainers = with maintainers; [ ftrvxmtrx chris-martin ];
2018-07-22 15:20:32 +00:00
license = licenses.mit;
2014-09-15 21:16:21 +00:00
};
}