nixpkgs-suyu/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}";
2016-09-18 23:39:14 +02:00
version = "0.7.0";
2016-06-04 20:40:56 +02:00
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;
2016-09-18 23:39:14 +02:00
sha256 = "04h5y5vixjh9np9lsrk02ypbqwcq855h7l1jlnl1vmfq3sfqjds7";
2016-06-04 20:40:56 +02:00
};
# 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
}