c594a97518
GitOrigin-RevId: 301aada7a64812853f2e2634a530ef5d34505048
33 lines
991 B
Nix
33 lines
991 B
Nix
{ stdenv, lib, buildGoModule, fetchFromGitHub, installShellFiles }:
|
|
|
|
buildGoModule rec {
|
|
pname = "sget";
|
|
version = "unstable-2022-10-04";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "sigstore";
|
|
repo = pname;
|
|
rev = "d7d1e53b21ca906000e74474729854cb5ac48dbc";
|
|
sha256 = "sha256-BgxTlLmtKqtDq3HgLoH+j0vBrpRujmL9Wr8F4d+jPi0=";
|
|
};
|
|
|
|
nativeBuildInputs = [ installShellFiles ];
|
|
|
|
vendorSha256 = "sha256-KPQHS7Hfco1ljOJgStIXMaol7j4dglcr0w+6Boj7GK8=";
|
|
|
|
ldflags = [ "-s" "-w" ];
|
|
|
|
postInstall = ''
|
|
installShellCompletion --cmd sget \
|
|
--bash <($out/bin/sget completion bash) \
|
|
--fish <($out/bin/sget completion fish) \
|
|
--zsh <($out/bin/sget completion zsh)
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/sigstore/sget";
|
|
description = "Command for safer, automatic verification of signatures and integration with Sigstore's binary transparency log, Rekor";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ lesuisse ];
|
|
};
|
|
}
|