Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
56 lines
1.1 KiB
Nix
56 lines
1.1 KiB
Nix
{ 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 propogate downward.
|
|
# This is to allow all-packages.nix to do:
|
|
#
|
|
# let k3s_1_23 = (callPackage ./path/to/k3s {
|
|
# commonK3sArg = ....
|
|
# }).k3s_1_23;
|
|
extraArgs = builtins.removeAttrs args [ "callPackage" ];
|
|
in
|
|
{
|
|
# 1_28 can be built with the same builder as 1_30
|
|
k3s_1_28 = common (
|
|
(import ./1_28/versions.nix)
|
|
// {
|
|
updateScript = [
|
|
./update-script.sh
|
|
"28"
|
|
];
|
|
}
|
|
) extraArgs;
|
|
|
|
# 1_29 can be built with the same builder as 1_30
|
|
k3s_1_29 = common (
|
|
(import ./1_29/versions.nix)
|
|
// {
|
|
updateScript = [
|
|
./update-script.sh
|
|
"29"
|
|
];
|
|
}
|
|
) extraArgs;
|
|
|
|
k3s_1_30 = common (
|
|
(import ./1_30/versions.nix)
|
|
// {
|
|
updateScript = [
|
|
./update-script.sh
|
|
"30"
|
|
];
|
|
}
|
|
) extraArgs;
|
|
|
|
k3s_1_31 = common (
|
|
(import ./1_31/versions.nix)
|
|
// {
|
|
updateScript = [
|
|
./update-script.sh
|
|
"31"
|
|
];
|
|
}
|
|
) extraArgs;
|
|
}
|