1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-23 14:11:36 +00:00
nixpkgs/pkgs/servers/consul/ui.nix

40 lines
799 B
Nix
Raw Normal View History

2015-07-08 23:10:41 +01:00
{ stdenv, goPackages, ruby, bundlerEnv }:
let
# `sass` et al
gems = bundlerEnv {
name = "consul-ui-deps";
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
in
stdenv.mkDerivation {
name = "consul-ui-${goPackages.consul.rev}";
src = goPackages.consul.src;
2015-07-08 23:10:41 +01:00
buildInputs = [ ruby gems ];
buildPhase = ''
# Build ui static files
cd ui
make dist
'';
installPhase = ''
# Install ui static files
mkdir -p $out
mv dist/* $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;
};
}