depot/third_party/nixpkgs/pkgs/by-name/rk/rke/package.nix

36 lines
812 B
Nix

{
lib,
buildGoModule,
fetchFromGitHub,
}:
buildGoModule rec {
pname = "rke";
version = "1.7.0";
src = fetchFromGitHub {
owner = "rancher";
repo = pname;
rev = "v${version}";
hash = "sha256-TbcjyUB0ni/n24vySZEUd0gFiWHr4FAdYhRB7BFPpCY=";
};
vendorHash = "sha256-Lp14xvhn4xzOurTa8sRk0A1X1c/sj1clw7niVTRgNeM=";
subPackages = [ "." ];
ldflags = [
"-s"
"-w"
"-X=main.VERSION=v${version}"
];
meta = with lib; {
homepage = "https://github.com/rancher/rke";
description = "Extremely simple, lightning fast Kubernetes distribution that runs entirely within containers";
mainProgram = "rke";
changelog = "https://github.com/rancher/rke/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ urandom ];
};
}