nixpkgs/pkgs/servers/consul/ui.nix

40 lines
817 B
Nix
Raw Normal View History

2016-06-07 12:19:03 +00:00
{ stdenv, goPackages, ruby, bundlerEnv, zip }:
let
# `sass` et al
gems = bundlerEnv {
name = "consul-ui-deps";
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
in
stdenv.mkDerivation {
2016-06-07 12:19:03 +00:00
name = "consul-ui-${goPackages.consul.rev}";
2016-06-07 12:19:03 +00:00
src = goPackages.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;
};
}