riemann-dash: simplify

This commit is contained in:
zimbatm 2016-10-02 23:41:14 +01:00
parent 1657d28895
commit 830c75b5e7

View File

@ -1,21 +1,9 @@
{ bundlerEnv, lib, stdenv }:
{ bundlerEnv, lib, ruby }:
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
'';
bundlerEnv {
inherit ruby;
pName = "riemann-dash";
gemdir = ./.;
meta = with lib; {
description = "A javascript, websockets-powered dashboard for Riemann";