git.iko.soy/typeable/nixpkgs
on master help sign in
riemann-dash: Wrap to keep bundler and sass out of user env
commit098e8500d4b00066813f0c9dbbd49eadb87b8030 authorBenjamin Staffin <benley@gmail.com> dateWed 15 Jun 2016, 20:47 (10 years ago) parentdfe4c44
1 file changed+24−6
pkgs/servers/monitoring/riemann-dash/default.nix+24−6
pkgs/servers/monitoring/riemann-dash/default.nix+24−6
@@ -1,8 +1,26 @@
1−{ bundlerEnv }:
1+{ bundlerEnv, lib, stdenv }:
22
3−bundlerEnv {
4− name = "riemann-dash-0.2.9";
5− gemfile = ./Gemfile;
6− lockfile = ./Gemfile.lock;
7− gemset = ./gemset.nix;
3+let
4+ name = "riemann-dash-${env.gems.riemann-dash.version}";
5+
6+ env = bundlerEnv {
7+ inherit name;
8+ gemfile = ./Gemfile;
9+ lockfile = ./Gemfile.lock;
10+ gemset = ./gemset.nix;
11+ };
12+
13+in stdenv.mkDerivation {
14+ inherit name;
15+ buildCommand = ''
16+ mkdir -p $out/bin
17+ ln -s ${env}/bin/riemann-dash $out/bin/riemann-dash
18+ '';
19+
20+ meta = with lib; {
21+ description = "A javascript, websockets-powered dashboard for Riemann";
22+ homepage = https://github.com/riemann/riemann-dash;
23+ license = licenses.mit;
24+ platforms = platforms.unix;
25+ };
826}