nixpkgs/pkgs/applications/networking/cluster/nomad/default.nix

30 lines
873 B
Nix
Raw Normal View History

2016-06-09 10:25:27 +01:00
{ stdenv, buildGoPackage, fetchFromGitHub }:
buildGoPackage rec {
name = "nomad-${version}";
2019-07-31 09:50:24 +01:00
version = "0.9.4";
2016-06-09 10:25:27 +01:00
rev = "v${version}";
goPackagePath = "github.com/hashicorp/nomad";
subPackages = [ "." ];
src = fetchFromGitHub {
owner = "hashicorp";
repo = "nomad";
inherit rev;
2019-07-31 09:50:24 +01:00
sha256 = "1jgvnmmrz7ffpm6aamdrvklj94n7b43swk9cycqhlfbnzijianpn";
2016-06-09 10:25:27 +01:00
};
# We disable Nvidia GPU scheduling on Linux, as it doesn't work there:
# Ref: https://github.com/hashicorp/nomad/issues/5535
buildFlags = stdenv.lib.optionalString (stdenv.isLinux) "-tags nonvidia";
2016-06-09 10:25:27 +01:00
meta = with stdenv.lib; {
homepage = https://www.nomadproject.io/;
description = "A Distributed, Highly Available, Datacenter-Aware Scheduler";
platforms = platforms.unix;
2016-06-30 19:22:35 +01:00
license = licenses.mpl20;
2017-02-01 03:02:29 +00:00
maintainers = with maintainers; [ rushmorem pradeepchhetri ];
2016-06-09 10:25:27 +01:00
};
}