This binary was provided by the `cosign` package until now but it is in the process of being removed, see https://github.com/sigstore/cosign/pull/2019 Since it might be removed during the 22.11 cycle we drop it preventively. This will make possible security backports easier if we need them.
34 lines
991 B
Nix
34 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 ];
|
|
};
|
|
}
|