riemann-dash: simplify
This commit is contained in:
parent
1657d28895
commit
830c75b5e7
1 changed files with 5 additions and 17 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue