Merge pull request #115937 from 06kellyjac/kube3d

kube3d: 4.2.0 -> 4.3.0

authored by

Sandro and committed by
GitHub
c5147860 b409c3c9

+9 -11
+9 -11
pkgs/applications/networking/cluster/kube3d/default.nix
··· 1 - { lib, buildGoModule, fetchFromGitHub, installShellFiles, k3sVersion ? "1.20.0-k3s2" }: 2 3 buildGoModule rec { 4 pname = "kube3d"; 5 - version = "4.2.0"; 6 7 excludedPackages = "tools"; 8 ··· 10 owner = "rancher"; 11 repo = "k3d"; 12 rev = "v${version}"; 13 - sha256 = "sha256-R2RbQlceOD/uY3IdLLiM23gESh/oWnsiTWxHeH/Si18="; 14 }; 15 16 vendorSha256 = null; 17 18 nativeBuildInputs = [ installShellFiles ]; 19 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 - ]; 27 28 doCheck = false; 29 ··· 36 37 meta = with lib; { 38 homepage = "https://github.com/rancher/k3d"; 39 description = "A helper to run k3s (Lightweight Kubernetes. 5 less than k8s) in a docker container - k3d"; 40 longDescription = '' 41 k3s is the lightweight Kubernetes distribution by Rancher: rancher/k3s ··· 44 multi-node k3s cluster on a single machine using docker. 45 ''; 46 license = licenses.mit; 47 - platforms = platforms.linux; 48 maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ]; 49 }; 50 }
··· 1 + { lib, buildGoModule, fetchFromGitHub, installShellFiles, k3sVersion ? "1.20.4-k3s1" }: 2 3 buildGoModule rec { 4 pname = "kube3d"; 5 + version = "4.3.0"; 6 7 excludedPackages = "tools"; 8 ··· 10 owner = "rancher"; 11 repo = "k3d"; 12 rev = "v${version}"; 13 + sha256 = "sha256-ybEYKr0rQY8Qg74V1mXqShq5Z2d/Adf0bSSbEMIyo3I="; 14 }; 15 16 vendorSha256 = null; 17 18 nativeBuildInputs = [ installShellFiles ]; 19 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 + ''; 24 25 doCheck = false; 26 ··· 33 34 meta = with lib; { 35 homepage = "https://github.com/rancher/k3d"; 36 + changelog = "https://github.com/rancher/k3d/blob/v${version}/CHANGELOG.md"; 37 description = "A helper to run k3s (Lightweight Kubernetes. 5 less than k8s) in a docker container - k3d"; 38 longDescription = '' 39 k3s is the lightweight Kubernetes distribution by Rancher: rancher/k3s ··· 42 multi-node k3s cluster on a single machine using docker. 43 ''; 44 license = licenses.mit; 45 maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ]; 46 + platforms = platforms.linux; 47 }; 48 }