Files
nixpkgs/pkgs/applications/networking/cluster/k3s/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

45 lines
894 B
Nix
Raw Normal View History

2025-10-09 14:15:47 +02:00
{ lib, callPackage, ... }@args:
let
k3s_builder = import ./builder.nix lib;
common = opts: callPackage (k3s_builder opts);
# extraArgs is the extra arguments passed in by the caller to propagate downward.
# This is to allow all-packages.nix to do:
#
# let k3s_1_23 = (callPackage ./path/to/k3s {
# commonK3sArg = ....
# }).k3s_1_23;
extraArgs = removeAttrs args [ "callPackage" ];
in
{
k3s_1_31 = common (
(import ./1_31/versions.nix)
// {
updateScript = [
./update-script.sh
"31"
];
}
) extraArgs;
k3s_1_32 = common (
(import ./1_32/versions.nix)
// {
updateScript = [
./update-script.sh
"32"
];
}
) extraArgs;
k3s_1_33 = common (
(import ./1_33/versions.nix)
// {
updateScript = [
./update-script.sh
"33"
];
}
) extraArgs;
}