nixpkgs/pkgs/servers/consul/default.nix

20 lines
447 B
Nix
Raw Normal View History

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