mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-17 19:23:50 +00:00
28 lines
679 B
Nix
28 lines
679 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gsctl";
|
|
version = "1.1.5";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "giantswarm";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-P1hJoZ1YSZTCo5ha/Um/nYVVhbYC3dcrQGJYTSnqNu4=";
|
|
};
|
|
|
|
vendorSha256 = "sha256-NeRABlKUpD2ZHRid/vu34Dh9uHZ+7IXWFPX8jkexUog=";
|
|
|
|
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 ];
|
|
};
|
|
}
|