riemann-dash: Wrap to keep bundler and sass out of user env

This commit is contained in:
Benjamin Staffin 2016-06-15 20:47:54 -04:00
parent dfe4c447b1
commit 098e8500d4

View File

@ -1,8 +1,26 @@
{ bundlerEnv }:
{ bundlerEnv, lib, stdenv }:
bundlerEnv {
name = "riemann-dash-0.2.9";
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
let
name = "riemann-dash-${env.gems.riemann-dash.version}";
env = bundlerEnv {
inherit name;
gemfile = ./Gemfile;
lockfile = ./Gemfile.lock;
gemset = ./gemset.nix;
};
in stdenv.mkDerivation {
inherit name;
buildCommand = ''
mkdir -p $out/bin
ln -s ${env}/bin/riemann-dash $out/bin/riemann-dash
'';
meta = with lib; {
description = "A javascript, websockets-powered dashboard for Riemann";
homepage = https://github.com/riemann/riemann-dash;
license = licenses.mit;
platforms = platforms.unix;
};
}