about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/rke2/default.nix
diff options
context:
space:
mode:
authorstefan-bordei <stefan.bordei13@gmail.com>2023-04-07 08:05:22 +0100
committerstefan-bordei <stefan.bordei13@gmail.com>2023-04-07 14:47:23 +0100
commitb9c075828886e56546b3005176bca0a577417a33 (patch)
tree9465094631e6c5144fc5d5f6abf735427c27f950 /pkgs/applications/networking/cluster/rke2/default.nix
parentedbacc42de6c82070f85ee603cc34450c431baf4 (diff)
rke2: init at 1.26.3+rke2r1
Diffstat (limited to 'pkgs/applications/networking/cluster/rke2/default.nix')
-rw-r--r--pkgs/applications/networking/cluster/rke2/default.nix27
1 files changed, 27 insertions, 0 deletions
diff --git a/pkgs/applications/networking/cluster/rke2/default.nix b/pkgs/applications/networking/cluster/rke2/default.nix
new file mode 100644
index 0000000000000..23ae6846b677b
--- /dev/null
+++ b/pkgs/applications/networking/cluster/rke2/default.nix
@@ -0,0 +1,27 @@
+{ lib, buildGoModule, fetchFromGitHub }:
+
+buildGoModule rec {
+  pname = "rke2";
+  version = "1.26.3+rke2r1";
+
+  src = fetchFromGitHub {
+    owner = "rancher";
+    repo = pname;
+    rev = "v${version}";
+    hash = "sha256-MC3INsuXV2JmazdXOAAslFlApvql6uOnOkWV8u0diOw=";
+  };
+
+  vendorHash = "sha256-W9Phc1JYa3APAKvI34RWqMy4xfmwgX3BaOh4bQYFEnU=";
+
+  subPackages = [ "." ];
+
+  ldflags = [ "-s" "-w" "-X github.com/k3s-io/k3s/pkg/version.Version=v${version}" ];
+
+  meta = with lib; {
+    homepage = "https://github.com/rancher/rke2";
+    description = "RKE2, also known as RKE Government, is Rancher's next-generation Kubernetes distribution.";
+    changelog = "https://github.com/rancher/rke2/releases/tag/v${version}";
+    license = licenses.asl20;
+    maintainers = with maintainers; [ zygot ];
+  };
+}