nixpkgs/pkgs/applications/misc/gsctl/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
749 B
Nix
Raw Normal View History

2022-04-05 23:52:55 +03:00
{ lib, buildGoModule, fetchFromGitHub, kubectl, stdenv }:
2019-06-30 22:00:21 +03:00
buildGoModule rec {
2019-06-30 22:00:21 +03:00
pname = "gsctl";
2022-07-28 16:55:12 +03:00
version = "1.1.6";
2019-06-30 22:00:21 +03:00
src = fetchFromGitHub {
owner = "giantswarm";
repo = pname;
rev = version;
2022-07-28 16:55:12 +03:00
sha256 = "sha256-eemPsrSFwgUR1Jz7283jjwMkoJR38QiaiilI9G0IQuo=";
2019-06-30 22:00:21 +03:00
};
2022-07-28 16:55:12 +03:00
vendorSha256 = "sha256-6b4H8YAY8d/qIGnnGPYZoXne1LXHLsc0OEq0lCeqivo=";
2022-04-05 23:52:55 +03:00
ldflags = [
"-s" "-w"
"-X github.com/giantswarm/gsctl/buildinfo.Version=${version}"
];
2022-04-05 23:52:55 +03:00
checkInputs = [
kubectl
];
doCheck = !stdenv.isDarwin;
meta = with lib; {
2019-06-30 22:00:21 +03:00
description = "The Giant Swarm command line interface";
homepage = "https://github.com/giantswarm/gsctl";
2019-06-30 22:00:21 +03:00
license = licenses.asl20;
maintainers = with maintainers; [ joesalisbury ];
};
}