nixpkgs/pkgs/servers/consul/default.nix

20 lines
447 B
Nix
Raw Normal View History

2016-06-07 20:32:34 +00:00
{ stdenv, lib, buildGoPackage, consul-ui, fetchFromGitHub }:
2016-06-04 18:40:56 +00:00
2016-06-07 20:32:34 +00:00
buildGoPackage rec {
2016-06-04 18:40:56 +00:00
name = "consul-${version}";
version = "0.6.4";
rev = "v${version}";
goPackagePath = "github.com/hashicorp/consul";
2016-06-04 21:24:19 +00:00
src = fetchFromGitHub {
owner = "hashicorp";
repo = "consul";
2016-06-04 18:40:56 +00:00
inherit rev;
sha256 = "0p6m2rl0d30w418n4fzc4vymqs3vzfa468czmy4znkjmxdl5vp5a";
};
# Keep consul.ui for backward compatability
2016-06-04 21:24:19 +00:00
passthru.ui = consul-ui;
2016-06-04 18:40:56 +00:00
}