Files
nixpkgs/pkgs/by-name/ha/hanko/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

45 lines
1.0 KiB
Nix

{
lib,
fetchFromGitHub,
installShellFiles,
rustPlatform,
nix-update-script,
}:
rustPlatform.buildRustPackage rec {
pname = "hanko";
version = "0.5.4";
src = fetchFromGitHub {
owner = "SRv6d";
repo = "hanko";
tag = "v${version}";
hash = "sha256-9HRoXqZ3wdD6xf33tooEHiBWSZlggjUFomblwF4cFtA=";
};
cargoHash = "sha256-wHvhlWi99igZ2gKAIcBYg207JrbQNCOjlcVttIy3MV0=";
passthru = {
updateScript = nix-update-script { };
};
nativeBuildInputs = [ installShellFiles ];
postInstall = ''
installManPage assets/manpages/*.1
installShellCompletion assets/completions/hanko.bash
installShellCompletion assets/completions/_hanko
installShellCompletion assets/completions/hanko.fish
'';
meta = {
description = "Keeps your Git allowed signers file up to date";
homepage = "https://github.com/SRv6d/hanko";
changelog = "https://github.com/SRv6d/hanko/blob/main/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ srv6d ];
mainProgram = "hanko";
};
}