Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / applications / misc / gsctl / default.nix
blobbf47ee1899b3f054af2ec1c8036aa3feca5b1a3b
1 { lib, buildGoModule, fetchFromGitHub, kubectl, stdenv }:
3 buildGoModule rec {
4   pname = "gsctl";
5   version = "1.1.6";
7   src = fetchFromGitHub {
8     owner = "giantswarm";
9     repo = pname;
10     rev = version;
11     sha256 = "sha256-eemPsrSFwgUR1Jz7283jjwMkoJR38QiaiilI9G0IQuo=";
12   };
14   vendorHash = "sha256-6b4H8YAY8d/qIGnnGPYZoXne1LXHLsc0OEq0lCeqivo=";
16   ldflags = [
17     "-s" "-w"
18     "-X github.com/giantswarm/gsctl/buildinfo.Version=${version}"
19   ];
21   nativeCheckInputs = [
22     kubectl
23   ];
25   doCheck = !stdenv.isDarwin;
27   meta = with lib; {
28     description = "The Giant Swarm command line interface";
29     homepage = "https://github.com/giantswarm/gsctl";
30     license = licenses.asl20;
31     maintainers = with maintainers; [ joesalisbury ];
32   };