hanko: init at 0.5.2
https://github.com/SRv6d/hanko/blob/main/CHANGELOG.md Apply suggestions from code review Co-authored-by: Leah Amelia Chen <github@acc.pluie.me> Remove `with lib`
This commit is contained in:
@@ -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";
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user