Files
nixpkgs/pkgs/by-name/al/alock/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
gitUpdater,
pkg-config,
autoreconfHook,
libX11,
pam,
libgcrypt,
libXrender,
imlib2,
}:
stdenv.mkDerivation rec {
pname = "alock";
version = "2.5.1";
src = fetchFromGitHub {
owner = "Arkq";
repo = "alock";
tag = "v${version}";
hash = "sha256-xfPhsXZrTlEqea75SvacDfjM9o21MTudrqfNN9xtdcg=";
};
PAM_DEFAULT_SERVICE = "login";
configureFlags = [
"--enable-pam"
"--enable-hash"
"--enable-xrender"
"--enable-imlib2"
];
nativeBuildInputs = [
pkg-config
autoreconfHook
];
buildInputs = [
libX11
pam
libgcrypt
libXrender
imlib2
];
passthru.updateScript = gitUpdater {
rev-prefix = "v";
allowedVersions = "\\.";
};
meta = with lib; {
homepage = "https://github.com/Arkq/alock";
description = "Simple screen lock application for X server";
mainProgram = "alock";
longDescription = ''
alock locks the X server until the user enters a password
via the keyboard. If the authentication was successful
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;
};
}