mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
bbb4e423e4
Nomad 1.2.0 externalized[1] the Nvidia device driver out of the main codebase and into a separate plugin[2], so there is no need to load the Nvidia libraries anymore when building Nomad itself. [1]: https://github.com/hashicorp/nomad/blob/main/CHANGELOG.md#120-november-15-2021 [2]: https://github.com/hashicorp/nomad-device-nvidia
40 lines
845 B
Nix
40 lines
845 B
Nix
{ lib
|
|
, buildGoModule
|
|
, fetchFromGitHub
|
|
, version
|
|
, sha256
|
|
, vendorSha256
|
|
, nixosTests
|
|
}:
|
|
|
|
buildGoModule rec {
|
|
pname = "nomad";
|
|
inherit version;
|
|
|
|
subPackages = [ "." ];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "hashicorp";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
inherit sha256;
|
|
};
|
|
|
|
inherit vendorSha256;
|
|
|
|
# ui:
|
|
# Nomad release commits include the compiled version of the UI, but the file
|
|
# is only included if we build with the ui tag.
|
|
tags = [ "ui" ];
|
|
|
|
passthru.tests.nomad = nixosTests.nomad;
|
|
|
|
meta = with lib; {
|
|
homepage = "https://www.nomadproject.io/";
|
|
description = "A Distributed, Highly Available, Datacenter-Aware Scheduler";
|
|
platforms = platforms.unix;
|
|
license = licenses.mpl20;
|
|
maintainers = with maintainers; [ rushmorem pradeepchhetri endocrimes maxeaubrey techknowlogick ];
|
|
};
|
|
}
|