2021-03-20 04:20:00 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "cosign";
|
2021-04-05 15:23:46 +00:00
|
|
|
version = "0.2.0";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sigstore";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-04-05 15:23:46 +00:00
|
|
|
sha256 = "1zwb2q62ngb2zh1hasvq7r7pmrjlpgfhs5raibbhkxbk5kayvmii";
|
2021-03-20 04:20:00 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
vendorSha256 = "0nwbjaps4z5fhiknbj9pybxb6kgwb1vf2qhy0mzpycprf04q6g0v";
|
2021-03-20 04:20:00 +00:00
|
|
|
|
|
|
|
subPackages = [ "cmd/cosign" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://github.com/sigstore/cosign";
|
|
|
|
changelog = "https://github.com/sigstore/cosign/releases/tag/v${version}";
|
|
|
|
description = "Container Signing CLI with support for ephemeral keys and Sigstore signing";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ lesuisse ];
|
|
|
|
};
|
|
|
|
}
|