build-bazel-package: added rm of extra local folders for toolchain configuration...
[NixPkgs.git] / pkgs / by-name / gi / gittuf / package.nix
blob7db3db7a5ec1f63e72f695c74feb7bf61a69ec8d
2   lib,
3   fetchFromGitHub,
4   buildGoModule,
5   git,
6   openssh,
7 }:
9 buildGoModule rec {
10   pname = "gittuf";
11   version = "0.8.1";
13   src = fetchFromGitHub {
14     owner = "gittuf";
15     repo = pname;
16     rev = "v${version}";
17     hash = "sha256-0HxjCHwYhJkDfMt+8kzOAfZVhlprXcKpJSpWIQreTK4=";
18   };
20   vendorHash = "sha256-fXDbXyMKTiw2PugW3WPzyMupfXCgObm9MkJfix0mKaM=";
22   ldflags = [ "-X github.com/gittuf/gittuf/internal/version.gitVersion=${version}" ];
24   nativeCheckInputs = [
25     git
26     openssh
27   ];
28   checkFlags = [
29     "-skip=TestLoadRepository"
30     "-skip=TestSSH"
31   ];
33   postInstall = "rm $out/bin/cli"; # remove gendoc cli binary
35   meta = with lib; {
36     changelog = "https://github.com/gittuf/gittuf/blob/v${version}/CHANGELOG.md";
37     description = "Security layer for Git repositories";
38     homepage = "https://gittuf.dev";
39     license = licenses.asl20;
40     mainProgram = "gittuf";
41     maintainers = with maintainers; [ flandweber ];
42   };