mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 00:24:18 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
53 lines
1.4 KiB
Nix
53 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";
|
|
rev = "refs/tags/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;
|
|
};
|
|
}
|