fe07537efb
consul: 0.5.2 -> 0.6.4 (using go 1.6) consul-ui: 0.5.2 -> 0.6.4 (using go 1.6) consul-alerts: 2015-08-09 -> 0.3.3 (using go 1.6) consul-template: 0.9.0 -> 0.14.0 (using go 1.6) vault: 0.2.0 -> 0.5.2 (using go 1.6)
40 lines
823 B
Nix
40 lines
823 B
Nix
{ stdenv, go16Packages, ruby, bundlerEnv, zip }:
|
|
|
|
let
|
|
# `sass` et al
|
|
gems = bundlerEnv {
|
|
name = "consul-ui-deps";
|
|
gemfile = ./Gemfile;
|
|
lockfile = ./Gemfile.lock;
|
|
gemset = ./gemset.nix;
|
|
};
|
|
in
|
|
|
|
stdenv.mkDerivation {
|
|
name = "consul-ui-${go16Packages.consul.rev}";
|
|
|
|
src = go16Packages.consul.src;
|
|
|
|
buildInputs = [ ruby gems zip ];
|
|
|
|
buildPhase = ''
|
|
# Build ui static files
|
|
cd ui
|
|
make dist
|
|
'';
|
|
|
|
installPhase = ''
|
|
# Install ui static files
|
|
mkdir -p $out
|
|
mv ../pkg/web_ui/* $out
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://www.consul.io/;
|
|
description = "A tool for service discovery, monitoring and configuration";
|
|
maintainers = with maintainers; [ cstrahan wkennington ];
|
|
license = licenses.mpl20 ;
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|