k3d: update pname to k3d

This commit is contained in:
06kellyjac 2022-05-10 14:54:07 +01:00
parent c69ca316dc
commit d5d0f0547d

View file

@ -14,7 +14,7 @@ let
false; false;
in in
buildGoModule rec { buildGoModule rec {
pname = "kube3d"; pname = "k3d";
version = "5.4.4"; version = "5.4.4";
src = fetchFromGitHub { src = fetchFromGitHub {
@ -30,10 +30,10 @@ buildGoModule rec {
excludedPackages = [ "tools" "docgen" ]; excludedPackages = [ "tools" "docgen" ];
ldflags = ldflags =
let t = "github.com/k3d-io/k3d/v5/version"; in let t = "github.com/k3d-io/k3d/v${lib.versions.major version}/version"; in
[ "-s" "-w" "-X ${t}.Version=v${version}" ] ++ lib.optionals k3sVersionSet [ "-X ${t}.K3sVersion=v${k3sVersion}" ]; [ "-s" "-w" "-X ${t}.Version=v${version}" ] ++ lib.optionals k3sVersionSet [ "-X ${t}.K3sVersion=v${k3sVersion}" ];
preCheck = '' preCheck = ''
# skip test that uses networking # skip test that uses networking
substituteInPlace version/version_test.go \ substituteInPlace version/version_test.go \
--replace "TestGetK3sVersion" "SkipGetK3sVersion" --replace "TestGetK3sVersion" "SkipGetK3sVersion"
@ -57,7 +57,7 @@ buildGoModule rec {
meta = with lib; { meta = with lib; {
homepage = "https://github.com/k3d-io/k3d/"; homepage = "https://github.com/k3d-io/k3d/";
changelog = "https://github.com/k3d-io/k3d/blob/v${version}/CHANGELOG.md"; changelog = "https://github.com/k3d-io/k3d/blob/v${version}/CHANGELOG.md";
description = "A helper to run k3s (Lightweight Kubernetes. 5 less than k8s) in a docker container - k3d"; description = "A helper to run k3s (Lightweight Kubernetes. 5 less than k8s) in a docker container";
longDescription = '' longDescription = ''
k3s is the lightweight Kubernetes distribution by Rancher: rancher/k3s k3s is the lightweight Kubernetes distribution by Rancher: rancher/k3s
@ -67,6 +67,5 @@ buildGoModule rec {
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ricochet ]; maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ricochet ];
platforms = platforms.linux ++ platforms.darwin; platforms = platforms.linux ++ platforms.darwin;
mainProgram = "k3d";
}; };
} }