diff --git a/pkgs/applications/networking/cluster/nomad/default.nix b/pkgs/applications/networking/cluster/nomad/default.nix index 86127f9c54c1..dc677b6e377d 100644 --- a/pkgs/applications/networking/cluster/nomad/default.nix +++ b/pkgs/applications/networking/cluster/nomad/default.nix @@ -2,6 +2,7 @@ lib, buildGoModule, buildGo124Module, + buildGo125Module, fetchFromGitHub, nixosTests, installShellFiles, @@ -40,12 +41,6 @@ let inherit hash; }; - # Nomad requires Go 1.24.6, but nixpkgs doesn't have it in unstable yet. - postPatch = '' - substituteInPlace go.mod \ - --replace-warn "go 1.24.6" "go 1.24.5" - ''; - nativeBuildInputs = [ installShellFiles ]; ldflags = [ @@ -88,6 +83,18 @@ rec { nomad = nomad_1_10; + nomad_1_11 = generic { + buildGoModule = buildGo125Module; + version = "1.11.0"; + hash = "sha256-ETC9zJVup/BLivsBWVez5/OLpl7cjdlIRACVK9ga3Io="; + vendorHash = "sha256-WqGWEjaPicpmkARSEQ/bqw8+GSemh1fcM3pb4BGjZpU="; + license = lib.licenses.bsl11; + passthru.tests.nomad = nixosTests.nomad; + preCheck = '' + export PATH="$PATH:$NIX_BUILD_TOP/go/bin" + ''; + }; + nomad_1_10 = generic { buildGoModule = buildGo124Module; version = "1.10.5"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 5370faf05a40..f113948d81c3 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3316,6 +3316,7 @@ with pkgs; nomad nomad_1_9 nomad_1_10 + nomad_1_11 ; nth = with python3Packages; toPythonApplication name-that-hash;