1 { lib, buildGoModule, fetchFromGitHub, stdenv, makeWrapper, gitMinimal, testers, gitsign }:
7 src = fetchFromGitHub {
11 hash = "sha256-COgoj5MrX7VBwjgfH+Ud7gp0gE7gpsYoyd0Jv4uXoec=";
13 vendorHash = "sha256-btvFro0K0+9potwForIj/7h41l+LbUE0Gym9aHaWtEE=";
17 "cmd/gitsign-credential-cache"
20 nativeBuildInputs = [ makeWrapper ];
22 ldflags = [ "-s" "-w" "-buildid=" "-X github.com/sigstore/gitsign/pkg/version.gitVersion=${version}" ];
30 for f in $out/bin/*; do
31 wrapProgram $f --prefix PATH : ${lib.makeBinPath [ gitMinimal ]}
35 passthru.tests.version = testers.testVersion { package = gitsign; };
38 homepage = "https://github.com/sigstore/gitsign";
39 changelog = "https://github.com/sigstore/gitsign/releases/tag/v${version}";
40 description = "Keyless Git signing using Sigstore";
41 license = lib.licenses.asl20;
42 maintainers = with lib.maintainers; [ lesuisse developer-guy ];