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