about summary refs log tree commit diff
path: root/pkgs/applications/networking/cluster/k3s/default.nix
blob: 503a4ff0c0d136ce554ad984310978c00d3a8974 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{ lib, stdenv, callPackage }:

let
  k3s_builder = import ./builder.nix lib;
  common = opts: callPackage (k3s_builder opts);
in
{
  k3s_1_26 = common ((import ./1_26/versions.nix) // {
    updateScript = [ ./update-script.sh "26" ];
  }) { };

  # 1_27 can be built with the same builder as 1_26
  k3s_1_27 = common ((import ./1_27/versions.nix) // {
    updateScript = [ ./update-script.sh "27" ];
  }) { };
}