@@ -1,8 +1,8 @@
1−{ lib, buildGoModule, fetchFromGitHub, installShellFiles, k3sVersion ? "1.20.0-k3s2" }:
1+{ lib, buildGoModule, fetchFromGitHub, installShellFiles, k3sVersion ? "1.20.4-k3s1" }:
22
33buildGoModule rec {
44 pname = "kube3d";
5− version = "4.2.0";
5+ version = "4.3.0";
66
77 excludedPackages = "tools";
88
@@ -10,20 +10,17 @@ buildGoModule rec {
1010 owner = "rancher";
1111 repo = "k3d";
1212 rev = "v${version}";
13− sha256 = "sha256-R2RbQlceOD/uY3IdLLiM23gESh/oWnsiTWxHeH/Si18=";
13+ sha256 = "sha256-ybEYKr0rQY8Qg74V1mXqShq5Z2d/Adf0bSSbEMIyo3I=";
1414 };
1515
1616 vendorSha256 = null;
1717
1818 nativeBuildInputs = [ installShellFiles ];
1919
20− buildFlagsArray = [
21− "-ldflags="
22− "-w"
23− "-s"
24− "-X github.com/rancher/k3d/v4/version.Version=v${version}"
25− "-X github.com/rancher/k3d/v4/version.K3sVersion=v${k3sVersion}"
26− ];
20+ preBuild = let t = "github.com/rancher/k3d/v4/version"; in
21+ ''
22+ buildFlagsArray+=("-ldflags" "-s -w -X ${t}.Version=v${version} -X ${t}.K3sVersion=v${k3sVersion}")
23+ '';
2724
2825 doCheck = false;
2926
@@ -36,6 +33,7 @@ buildGoModule rec {
3633
3734 meta = with lib; {
3835 homepage = "https://github.com/rancher/k3d";
36+ changelog = "https://github.com/rancher/k3d/blob/v${version}/CHANGELOG.md";
3937 description = "A helper to run k3s (Lightweight Kubernetes. 5 less than k8s) in a docker container - k3d";
4038 longDescription = ''
4139 k3s is the lightweight Kubernetes distribution by Rancher: rancher/k3s
@@ -44,7 +42,7 @@ buildGoModule rec {
4442 multi-node k3s cluster on a single machine using docker.
4543 '';
4644 license = licenses.mit;
47− platforms = platforms.linux;
4845 maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ];
46+ platforms = platforms.linux;
4947 };
5048}