mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-25 23:23:07 +00:00
28 lines
769 B
Nix
28 lines
769 B
Nix
{ lib, buildGoModule, fetchFromGitHub }:
|
|
|
|
buildGoModule rec {
|
|
pname = "rke";
|
|
version = "1.4.1";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "rancher";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
hash = "sha256-H5T7Hr6/YL93lbCLOxfQ+Kmv3C+FS074418mHhBV3Bs=";
|
|
};
|
|
|
|
vendorHash = "sha256-zV1lrJhzrUAcEk6jYLCFrHcYw3CZart46qXErCTjZyQ=";
|
|
|
|
subPackages = [ "." ];
|
|
|
|
ldflags = [ "-s" "-w" "-X=main.VERSION=v${version}" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/rancher/rke";
|
|
description = "An extremely simple, lightning fast Kubernetes distribution that runs entirely within containers";
|
|
changelog = "https://github.com/rancher/rke/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ urandom ];
|
|
};
|
|
}
|