summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/rke
diff options
context:
space:
mode:
authorColin Arnott <colin@urandom.co.uk>2022-11-30 04:43:26 +0000
committerColin Arnott <colin@urandom.co.uk>2022-11-30 09:21:11 +0000
commit2690f30fd334689b228579fb44f7e3b02c9f138a (patch)
tree3fb78163a6b9020e10a44db1e0f02c2bb7249fc4 /pkgs/applications/networking/cluster/rke
parent7296c123afd1f30a9c2a13ba10506e385202b529 (diff)
rke: init at 1.4.1
Fixes #143217
Diffstat (limited to 'pkgs/applications/networking/cluster/rke')
-rw-r--r--pkgs/applications/networking/cluster/rke/default.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/rke/default.nix b/pkgs/applications/networking/cluster/rke/default.nix
new file mode 100644
index 0000000000000..f21db14ed6265
--- /dev/null
+++ b/pkgs/applications/networking/cluster/rke/default.nix
@@ -0,0 +1,25 @@
+{ 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=";
+
+  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 ];
+  };
+}