3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/networking/cluster/k0sctl/default.nix

33 lines
744 B
Nix
Raw Normal View History

2021-07-13 09:17:37 +01:00
{ lib
, buildGoModule
, fetchFromGitHub
}:
buildGoModule rec {
pname = "k0sctl";
2021-11-03 06:35:26 +00:00
version = "0.11.4";
2021-07-13 09:17:37 +01:00
src = fetchFromGitHub {
owner = "k0sproject";
repo = pname;
rev = "v${version}";
2021-11-03 06:35:26 +00:00
sha256 = "sha256-Fk1aYSa3LqzxiHtlzH5pcNtodOprjfnCFh4UMqCa6Rc=";
2021-07-13 09:17:37 +01:00
};
2021-10-09 13:03:24 +01:00
vendorSha256 = "sha256-N4cU9wzBRZn71mZHkNDXKgSXvlN2QFS6K4MtlR25DJc=";
2021-07-13 09:17:37 +01:00
2021-10-04 15:02:33 +01:00
ldflags = [
"-s"
"-w"
"-X github.com/k0sproject/k0sctl/version.Environment=production"
"-X github.com/k0sproject/k0sctl/version.Version=${version}"
];
2021-07-13 09:17:37 +01:00
meta = with lib; {
description = "A bootstrapping and management tool for k0s clusters.";
homepage = "https://k0sproject.io/";
license = licenses.asl20;
maintainers = with maintainers; [ nickcao ];
};
}