mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 15:43:00 +00:00
riemann-dash: Wrap to keep bundler and sass out of user env
This commit is contained in:
parent
dfe4c447b1
commit
098e8500d4
@ -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;
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user