biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / admin / credhub-cli / default.nix
blobb47be23c03ae1a1eccd73a97c2aaa5cf9cfd2b9c
1 { lib, buildGoModule, fetchFromGitHub }:
3 buildGoModule rec {
4   pname = "credhub-cli";
5   version = "2.9.38";
7   src = fetchFromGitHub {
8     owner = "cloudfoundry-incubator";
9     repo = "credhub-cli";
10     rev = version;
11     sha256 = "sha256-xSjT+h85/ZknwTTLUhC9GWrCRN9VHMQBM6WuHX3ldq4=";
12   };
14   # these tests require network access that we're not going to give them
15   postPatch = ''
16     rm commands/api_test.go
17     rm commands/socks5_test.go
18   '';
19   __darwinAllowLocalNetworking = true;
21   vendorHash = null;
23   ldflags = [
24     "-s"
25     "-w"
26     "-X code.cloudfoundry.org/credhub-cli/version.Version=${version}"
27   ];
29   postInstall = ''
30     ln -s $out/bin/credhub-cli $out/bin/credhub
31   '';
33   preCheck = ''
34     export HOME=$TMPDIR
35   '';
37   meta = with lib; {
38     description = "Provides a command line interface to interact with CredHub servers";
39     homepage = "https://github.com/cloudfoundry-incubator/credhub-cli";
40     maintainers = with maintainers; [ ris ];
41     license = licenses.asl20;
42   };