···11-{ lib
22-, buildGoModule
33-, fetchFromGitHub
44-, version
55-, sha256
66-, vendorSha256
77-, nixosTests
88-}:
99-1010-buildGoModule rec {
1111- pname = "nomad";
1212- inherit version;
1313-1414- subPackages = [ "." ];
1515-1616- src = fetchFromGitHub {
1717- owner = "hashicorp";
1818- repo = pname;
1919- rev = "v${version}";
2020- inherit sha256;
2121- };
2222-2323- inherit vendorSha256;
2424-2525- # ui:
2626- # Nomad release commits include the compiled version of the UI, but the file
2727- # is only included if we build with the ui tag.
2828- tags = [ "ui" ];
2929-3030- passthru.tests.nomad = nixosTests.nomad;
3131-3232- meta = with lib; {
3333- homepage = "https://www.nomadproject.io/";
3434- description = "A Distributed, Highly Available, Datacenter-Aware Scheduler";
3535- platforms = platforms.unix;
3636- license = licenses.mpl20;
3737- maintainers = with maintainers; [ rushmorem pradeepchhetri endocrimes maxeaubrey techknowlogick ];
3838- };
3939-}
+6-16
pkgs/top-level/all-packages.nix
···9790979097919791 noip = callPackage ../tools/networking/noip { };
9792979297939793- nomad = nomad_1_4;
97949794-97959795- # Nomad never updates major go versions within a release series and is unsupported
97969796- # on Go versions that it did not ship with. Due to historic bugs when compiled
97979797- # with different versions we pin Go for all versions.
97989798- # Upstream partially documents used Go versions here
97999799- # https://github.com/hashicorp/nomad/blob/master/contributing/golang.md
98009800- nomad_1_2 = callPackage ../applications/networking/cluster/nomad/1.2.nix {
98019801- buildGoModule = buildGo119Module;
98029802- };
98039803- nomad_1_3 = callPackage ../applications/networking/cluster/nomad/1.3.nix {
98049804- buildGoModule = buildGo119Module;
98059805- };
98069806- nomad_1_4 = callPackage ../applications/networking/cluster/nomad/1.4.nix {
98079807- buildGoModule = buildGo119Module;
98089808- };
97939793+ inherit (callPackage ../applications/networking/cluster/nomad { })
97949794+ nomad
97959795+ nomad_1_2
97969796+ nomad_1_3
97979797+ nomad_1_4
97989798+ ;
9809979998109800 nomad-autoscaler = callPackage ../applications/networking/cluster/nomad-autoscaler { };
98119801