diff --git a/pkgs/applications/networking/cluster/nomad/default.nix b/pkgs/applications/networking/cluster/nomad/default.nix index a0998eb6fa361..e8b9fe8df1a4a 100644 --- a/pkgs/applications/networking/cluster/nomad/default.nix +++ b/pkgs/applications/networking/cluster/nomad/default.nix @@ -27,6 +27,12 @@ let nativeBuildInputs = [ installShellFiles ]; + ldflags = [ + "-X github.com/hashicorp/nomad/version.Version=${version}" + "-X github.com/hashicorp/nomad/version.VersionPrerelease=" + "-X github.com/hashicorp/nomad/version.BuildDate=1970-01-01T00:00:00Z" + ]; + # ui: # Nomad release commits include the compiled version of the UI, but the file # is only included if we build with the ui tag. @@ -89,9 +95,9 @@ rec { nomad_1_9 = generic { buildGoModule = buildGo123Module; - version = "1.9.0"; - sha256 = "sha256-MJNPYSH3KsRmGQeOcWw4VvDeFGinfsyGSo4q3OdOZo8="; - vendorHash = "sha256-Ss/qwQ14VUu40nXaIgTfNuj95ekTTVrY+zcStFDSCyI="; + version = "1.9.2"; + sha256 = "sha256-HIyRzujAGwhB2anbxidhq5UpWYHkigyyHfxIUwMF5X8="; + vendorHash = "sha256-YIOTdD+oRDdEHkBzQCUuKCz7Wbj4mFjrZY0J3Cte400="; license = lib.licenses.bsl11; passthru.tests.nomad = nixosTests.nomad; preCheck = ''