hanko: init at 0.5.2 (#366005)

This commit is contained in:
Sefa Eyeoglu
2024-12-30 19:39:21 +01:00
committed by GitHub
2 changed files with 44 additions and 0 deletions
+6
View File
@@ -21497,6 +21497,12 @@
github = "srounce";
githubId = 60792;
};
srv6d = {
name = "Marvin Vogt";
github = "SRv6d";
githubId = 18124752;
email = "m@rvinvogt.com";
};
Srylax = {
name = "Srylax";
email = "srylax+nixpkgs@srylax.dev";
+38
View File
@@ -0,0 +1,38 @@
{
lib,
fetchFromGitHub,
installShellFiles,
rustPlatform,
}:
rustPlatform.buildRustPackage rec {
pname = "hanko";
version = "0.5.2";
src = fetchFromGitHub {
owner = "SRv6d";
repo = "hanko";
tag = "v${version}";
hash = "sha256-gytnUta/sNa8vJMvVS/DMwRc4R/8rmOnEfBKEjRpfGs=";
};
cargoHash = "sha256-rlKFS1ppUoyZ1X2PeG8tEB44Ysqi7kCLqR+ECVIdPjs=";
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";
};
}