···1-{ lib
2-, buildGoModule
3-, fetchFromGitHub
4-, version
5-, sha256
6-, vendorSha256
7-, nixosTests
8-}:
9-10-buildGoModule rec {
11- pname = "nomad";
12- inherit version;
13-14- subPackages = [ "." ];
15-16- src = fetchFromGitHub {
17- owner = "hashicorp";
18- repo = pname;
19- rev = "v${version}";
20- inherit sha256;
21- };
22-23- inherit vendorSha256;
24-25- # ui:
26- # Nomad release commits include the compiled version of the UI, but the file
27- # is only included if we build with the ui tag.
28- tags = [ "ui" ];
29-30- passthru.tests.nomad = nixosTests.nomad;
31-32- meta = with lib; {
33- homepage = "https://www.nomadproject.io/";
34- description = "A Distributed, Highly Available, Datacenter-Aware Scheduler";
35- platforms = platforms.unix;
36- license = licenses.mpl20;
37- maintainers = with maintainers; [ rushmorem pradeepchhetri endocrimes maxeaubrey techknowlogick ];
38- };
39-}
···000000000000000000000000000000000000000
+6-16
pkgs/top-level/all-packages.nix
···97909791 noip = callPackage ../tools/networking/noip { };
97929793- nomad = nomad_1_4;
9794-9795- # Nomad never updates major go versions within a release series and is unsupported
9796- # on Go versions that it did not ship with. Due to historic bugs when compiled
9797- # with different versions we pin Go for all versions.
9798- # Upstream partially documents used Go versions here
9799- # https://github.com/hashicorp/nomad/blob/master/contributing/golang.md
9800- nomad_1_2 = callPackage ../applications/networking/cluster/nomad/1.2.nix {
9801- buildGoModule = buildGo119Module;
9802- };
9803- nomad_1_3 = callPackage ../applications/networking/cluster/nomad/1.3.nix {
9804- buildGoModule = buildGo119Module;
9805- };
9806- nomad_1_4 = callPackage ../applications/networking/cluster/nomad/1.4.nix {
9807- buildGoModule = buildGo119Module;
9808- };
98099810 nomad-autoscaler = callPackage ../applications/networking/cluster/nomad-autoscaler { };
9811