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

28 lines
679 B
Nix
Raw Normal View History

{ lib, buildGoModule, fetchFromGitHub }:
2019-06-30 21:00:21 +02:00
buildGoModule rec {
2019-06-30 21:00:21 +02:00
pname = "gsctl";
version = "1.1.4";
2019-06-30 21:00:21 +02:00
src = fetchFromGitHub {
owner = "giantswarm";
repo = pname;
rev = version;
sha256 = "sha256-uCNWgaLZMm1vPxFduj8mpjKYuYlp1ChF6bK+bmAWy50=";
2019-06-30 21:00:21 +02:00
};
vendorSha256 = "sha256-lZgHrQYqoyoM1Iv6vCqTMcv62zSKyxaAsq56kUXHrIA=";
ldflags =
[ "-s" "-w" "-X github.com/giantswarm/gsctl/buildinfo.Version=${version}" ];
doCheck = false;
meta = with lib; {
2019-06-30 21:00:21 +02:00
description = "The Giant Swarm command line interface";
homepage = "https://github.com/giantswarm/gsctl";
2019-06-30 21:00:21 +02:00
license = licenses.asl20;
maintainers = with maintainers; [ joesalisbury ];
};
}