mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
f8c4a98e8e
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"([Tt]he)? ' pkgs \ | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Tt]he (.)/\1\U\2/'
44 lines
904 B
Nix
44 lines
904 B
Nix
{ lib, buildGoModule, fetchFromGitHub, kubectl, stdenv }:
|
|
|
|
buildGoModule rec {
|
|
pname = "gsctl";
|
|
version = "1.1.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "giantswarm";
|
|
repo = pname;
|
|
rev = version;
|
|
sha256 = "sha256-eemPsrSFwgUR1Jz7283jjwMkoJR38QiaiilI9G0IQuo=";
|
|
};
|
|
|
|
vendorHash = "sha256-6b4H8YAY8d/qIGnnGPYZoXne1LXHLsc0OEq0lCeqivo=";
|
|
|
|
patches = [
|
|
./go120-compatibility.patch
|
|
];
|
|
|
|
postPatch = ''
|
|
# fails on sandbox
|
|
rm commands/root_test.go
|
|
'';
|
|
|
|
ldflags = [
|
|
"-s" "-w"
|
|
"-X github.com/giantswarm/gsctl/buildinfo.Version=${version}"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
kubectl
|
|
];
|
|
|
|
doCheck = !stdenv.isDarwin;
|
|
|
|
meta = with lib; {
|
|
description = "Giant Swarm command line interface";
|
|
homepage = "https://github.com/giantswarm/gsctl";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ joesalisbury ];
|
|
mainProgram = "gsctl";
|
|
};
|
|
}
|