git.iko.soy/typeable/nixpkgs
on master help sign in
foreman: simplify
commit194ac466ee5dce50f6a3c6d7c61b765254fa1474 authorzimbatm <zimbatm@zimbatm.com> dateSun 2 Oct 2016, 23:38 (10 years ago) parent2a19474
1 file changed+5−20
pkgs/tools/system/foreman/default.nix+5−20
pkgs/tools/system/foreman/default.nix+5−20
@@ -1,24 +1,9 @@
1−{ stdenv, lib, ruby, bundlerEnv, makeWrapper }:
1+{ bundlerEnv, lib, ruby }:
22
3−stdenv.mkDerivation rec {
4− name = "foreman-${env.gems.foreman.version}";
5−
6− env = bundlerEnv {
7− inherit ruby;
8− name = "${name}-gems";
9− gemfile = ./Gemfile;
10− lockfile = ./Gemfile.lock;
11− gemset = ./gemset.nix;
12− };
13−
14− phases = ["installPhase"];
15−
16− nativeBuildInputs = [ makeWrapper ];
17−
18− installPhase = ''
19− mkdir -p $out/bin
20− makeWrapper ${env}/bin/foreman $out/bin/foreman
21− '';
3+bundlerEnv {
4+ inherit ruby;
5+ pName = "foreman";
6+ gemdir = ./.;
227
238 meta = with lib; {
249 description = "Process manager for applications with multiple components";