mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
79f727ad47
Also switch to buildGoModule.
28 lines
679 B
Nix
28 lines
679 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gsctl";
|
|
version = "1.1.4";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "giantswarm";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-uCNWgaLZMm1vPxFduj8mpjKYuYlp1ChF6bK+bmAWy50=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-lZgHrQYqoyoM1Iv6vCqTMcv62zSKyxaAsq56kUXHrIA=";
|
|
|
|
ldflags =
|
|
[ "-s" "-w" "-X github.com/giantswarm/gsctl/buildinfo.Version=${version}" ];
|
|
|
|
doCheck = false;
|
|
|
|
meta = with lib; {
|
|
description = "The Giant Swarm command line interface";
|
|
homepage = "https://github.com/giantswarm/gsctl";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ joesalisbury ];
|
|
};
|
|
}
|