From 830c75b5e79a1830f115589e753eb50366568ee1 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Sun, 2 Oct 2016 23:41:14 +0100 Subject: [PATCH] riemann-dash: simplify --- .../monitoring/riemann-dash/default.nix | 22 +++++-------------- 1 file changed, 5 insertions(+), 17 deletions(-) diff --git a/pkgs/servers/monitoring/riemann-dash/default.nix b/pkgs/servers/monitoring/riemann-dash/default.nix index 32f543fbf2f1..c2d197e6b45a 100644 --- a/pkgs/servers/monitoring/riemann-dash/default.nix +++ b/pkgs/servers/monitoring/riemann-dash/default.nix @@ -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";