nixpkgs/pkgs/servers/consul/default.nix

20 lines
447 B
Nix
Raw Normal View History

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