nomad_1_11: init at 1.11.0, nomad: remove obsolete patch (#465049)

This commit is contained in:
Austin Horstman
2025-12-29 04:22:01 +00:00
committed by GitHub
2 changed files with 14 additions and 6 deletions
@@ -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";
+1
View File
@@ -3316,6 +3316,7 @@ with pkgs;
nomad
nomad_1_9
nomad_1_10
nomad_1_11
;
nth = with python3Packages; toPythonApplication name-that-hash;