2022-06-16 17:23:12 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, stdenv }:
|
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "gitsign";
|
2022-09-30 11:47:45 +00:00
|
|
|
version = "0.3.1";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sigstore";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-09-30 11:47:45 +00:00
|
|
|
sha256 = "sha256-jL39U7kmdy5lo/caetpFlFCLfby6ftMWDMPq6yt3nUk=";
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
2022-09-30 11:47:45 +00:00
|
|
|
vendorSha256 = "sha256-9tmENlR3vVELmT7JWcz7RhtIji7go2V/Bsu9nMrvHfs=";
|
2022-06-16 17:23:12 +00:00
|
|
|
|
|
|
|
ldflags = [ "-s" "-w" "-buildid=" "-X github.com/sigstore/gitsign/pkg/version.gitVersion=${version}" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "https://github.com/sigstore/gitsign";
|
|
|
|
changelog = "https://github.com/sigstore/gitsign/releases/tag/v${version}";
|
|
|
|
description = "Keyless Git signing using Sigstore";
|
|
|
|
license = lib.licenses.asl20;
|
|
|
|
maintainers = with lib.maintainers; [ lesuisse ];
|
|
|
|
};
|
|
|
|
}
|