From c69ca316dccbe788a5e50efc2130f1839da007dc Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Tue, 10 May 2022 14:53:27 +0100 Subject: [PATCH 1/3] k3d: rename kube3d to k3d now that attr is free This takes the place of the old k3d which was the 3d editor k-3d --- .../networking/cluster/{kube3d => k3d}/default.nix | 0 pkgs/top-level/aliases.nix | 4 +++- pkgs/top-level/all-packages.nix | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) rename pkgs/applications/networking/cluster/{kube3d => k3d}/default.nix (100%) diff --git a/pkgs/applications/networking/cluster/kube3d/default.nix b/pkgs/applications/networking/cluster/k3d/default.nix similarity index 100% rename from pkgs/applications/networking/cluster/kube3d/default.nix rename to pkgs/applications/networking/cluster/k3d/default.nix diff --git a/pkgs/top-level/aliases.nix b/pkgs/top-level/aliases.nix index 65494772797f..76236044d69c 100644 --- a/pkgs/top-level/aliases.nix +++ b/pkgs/top-level/aliases.nix @@ -769,7 +769,9 @@ mapAliases ({ ### K ### - k3d = throw "k3d has been removed because it was broken and has seen no release since 2016"; # Added 2022-01-04 + # k3d was a 3d editing software k-3d - "k3d has been removed because it was broken and has seen no release since 2016" Added 2022-01-04 + # now kube3d/k3d will take it's place + kube3d = k3d; # Added 2022-0705 k9copy = throw "k9copy has been removed from nixpkgs, as there is no upstream activity"; # Added 2020-11-06 kafkacat = kcat; # Added 2021-10-07 kbdKeymaps = throw "kbdKeymaps is not needed anymore since dvp and neo are now part of kbd"; # Added 2021-04-11 diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 218711f3c596..6413a4cd5ed7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -40104,7 +40104,7 @@ with pkgs; dapper = callPackage ../development/tools/dapper { }; - kube3d = callPackage ../applications/networking/cluster/kube3d { + k3d = callPackage ../applications/networking/cluster/k3d { buildGoModule = buildGo118Module; # tests fail with 1.19 }; From d5d0f0547d7923398c58c7ace32bfeb6cf6474c8 Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Tue, 10 May 2022 14:54:07 +0100 Subject: [PATCH 2/3] k3d: update pname to k3d --- pkgs/applications/networking/cluster/k3d/default.nix | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/pkgs/applications/networking/cluster/k3d/default.nix b/pkgs/applications/networking/cluster/k3d/default.nix index 395010dd4c9a..473a12c4de00 100644 --- a/pkgs/applications/networking/cluster/k3d/default.nix +++ b/pkgs/applications/networking/cluster/k3d/default.nix @@ -14,7 +14,7 @@ let false; in buildGoModule rec { - pname = "kube3d"; + pname = "k3d"; version = "5.4.4"; src = fetchFromGitHub { @@ -30,10 +30,10 @@ buildGoModule rec { excludedPackages = [ "tools" "docgen" ]; 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}" ]; - preCheck = '' + preCheck = '' # skip test that uses networking substituteInPlace version/version_test.go \ --replace "TestGetK3sVersion" "SkipGetK3sVersion" @@ -57,7 +57,7 @@ buildGoModule rec { meta = with lib; { homepage = "https://github.com/k3d-io/k3d/"; 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 = '' k3s is the lightweight Kubernetes distribution by Rancher: rancher/k3s @@ -67,6 +67,5 @@ buildGoModule rec { license = licenses.mit; maintainers = with maintainers; [ kuznero jlesquembre ngerstle jk ricochet ]; platforms = platforms.linux ++ platforms.darwin; - mainProgram = "k3d"; }; } From 6b78c0b80ee78c99ba2cc6e29bc7497445b3443d Mon Sep 17 00:00:00 2001 From: 06kellyjac Date: Mon, 23 Jan 2023 11:04:52 +0000 Subject: [PATCH 3/3] k3d: add notice of rename in release notes --- nixos/doc/manual/release-notes/rl-2305.section.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2305.section.md b/nixos/doc/manual/release-notes/rl-2305.section.md index 7eafa6a9bef8..15ffbc09aff9 100644 --- a/nixos/doc/manual/release-notes/rl-2305.section.md +++ b/nixos/doc/manual/release-notes/rl-2305.section.md @@ -343,6 +343,8 @@ In addition to numerous new and upgraded packages, this release has the followin `services.dnsmasq.extraConfig` will be deprecated when NixOS 22.11 reaches end of life. +- `kube3d` has now been renamed to `k3d` since the 3d editor that originally took that name has been dropped from nixpkgs. `kube3d` will continue to work as an alias for now. + - The `dokuwiki` service is now configured via `services.dokuwiki.sites..settings` attribute set; `extraConfig` has been removed. The `{aclUse,superUser,disableActions}` attributes have been renamed accordingly. `pluginsConfig` now only accepts an attribute set of booleans. Passing plain PHP is no longer possible.