diff --git a/pkgs/applications/networking/cluster/nomad/default.nix b/pkgs/applications/networking/cluster/nomad/default.nix index 2e9ff9ae31d9..f95a2ec08764 100644 --- a/pkgs/applications/networking/cluster/nomad/default.nix +++ b/pkgs/applications/networking/cluster/nomad/default.nix @@ -1,7 +1,7 @@ { lib, - buildGoModule, buildGo125Module, + buildGo126Module, fetchFromGitHub, nixosTests, installShellFiles, @@ -82,6 +82,19 @@ rec { nomad = nomad_1_11; + nomad_2_0 = generic { + buildGoModule = buildGo126Module; + version = "2.0.0"; + hash = "sha256-5rCAcOXWQ6g2iK1d5wy/a/DZQC2xwwdpI1SscDX98C8="; + vendorHash = "sha256-3/H7QgVOHtaUs6BOF7ATVgrA0cfNBbm940Axrvq2bKU="; + license = lib.licenses.bsl11; + passthru.tests.nomad = nixosTests.nomad; + preCheck = '' + export PATH="$PATH:$NIX_BUILD_TOP/go/bin" + ''; + __structuredAttrs = true; + }; + nomad_1_11 = generic { buildGoModule = buildGo125Module; version = "1.11.3"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 449823f9372f..05dd387e94af 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2589,6 +2589,7 @@ with pkgs; nomad_1_9 nomad_1_10 nomad_1_11 + nomad_2_0 ; nth = with python3Packages; toPythonApplication name-that-hash;