summary refs log tree commit diff
diff options
context:
space:
mode:
authorKevin Cox <kevincox@kevincox.ca>2021-01-25 07:41:04 -0500
committerGitHub <noreply@github.com>2021-01-25 07:41:04 -0500
commit8708b6d871ac4213df50f631235aa675f2ccb751 (patch)
treefcf7d0aee6fdeb860c4c2070f6013e60a431e4c5
parentd8f3ef1c1435ac0bafc5afae6c4ea3ca704ee40d (diff)
parent4f31c7c748f7f856b0edc2e1015f7e8ffd33a351 (diff)
downloadnixpkgs-8708b6d871ac4213df50f631235aa675f2ccb751.tar
nixpkgs-8708b6d871ac4213df50f631235aa675f2ccb751.tar.gz
nixpkgs-8708b6d871ac4213df50f631235aa675f2ccb751.tar.bz2
nixpkgs-8708b6d871ac4213df50f631235aa675f2ccb751.tar.lz
nixpkgs-8708b6d871ac4213df50f631235aa675f2ccb751.tar.xz
nixpkgs-8708b6d871ac4213df50f631235aa675f2ccb751.tar.zst
nixpkgs-8708b6d871ac4213df50f631235aa675f2ccb751.zip
Merge pull request #106176 from 06kellyjac/kube3d_4.0.0
kube3d: 3.4.0 -> 4.0.0
-rw-r--r--pkgs/applications/networking/cluster/kube3d/default.nix13
1 files changed, 5 insertions, 8 deletions
diff --git a/pkgs/applications/networking/cluster/kube3d/default.nix b/pkgs/applications/networking/cluster/kube3d/default.nix
index f38e3135ecb..cc90cf2d63c 100644
--- a/pkgs/applications/networking/cluster/kube3d/default.nix
+++ b/pkgs/applications/networking/cluster/kube3d/default.nix
@@ -1,11 +1,8 @@
-{ lib, buildGoModule, fetchFromGitHub, installShellFiles }:
+{ lib, buildGoModule, fetchFromGitHub, installShellFiles, k3sVersion ? "1.20.0-k3s2" }:
 
-let
-  k3sVersion = "1.20.0-k3s2";
-in
 buildGoModule rec {
   pname = "kube3d";
-  version = "3.4.0";
+  version = "4.0.0";
 
   excludedPackages = "tools";
 
@@ -13,7 +10,7 @@ buildGoModule rec {
     owner = "rancher";
     repo = "k3d";
     rev = "v${version}";
-    sha256 = "1fisbzv786n841pagy7zbanll7k1g5ib805j9azs2s30cfhvi08b";
+    sha256 = "sha256-sHtPW9EaTycHh9d/vp28BvzhmbLUQYsu6yMfJlJYH+k=";
   };
 
   vendorSha256 = null;
@@ -24,8 +21,8 @@ buildGoModule rec {
     "-ldflags="
     "-w"
     "-s"
-    "-X github.com/rancher/k3d/v3/version.Version=v${version}"
-    "-X github.com/rancher/k3d/v3/version.K3sVersion=v${k3sVersion}"
+    "-X github.com/rancher/k3d/v4/version.Version=v${version}"
+    "-X github.com/rancher/k3d/v4/version.K3sVersion=v${k3sVersion}"
   ];
 
   doCheck = false;