diff options
author | zimbatm <zimbatm@zimbatm.com> | 2016-10-02 23:38:54 +0100 |
---|---|---|
committer | zimbatm <zimbatm@zimbatm.com> | 2016-10-08 22:38:56 +0100 |
commit | 194ac466ee5dce50f6a3c6d7c61b765254fa1474 (patch) | |
tree | 9c60375200f7142da5c94c872fb51dd224f6df41 /pkgs/tools/system/foreman | |
parent | 2a194746a53480c5073a54af9ae007df974454ab (diff) |
foreman: simplify
Diffstat (limited to 'pkgs/tools/system/foreman')
-rw-r--r-- | pkgs/tools/system/foreman/default.nix | 25 |
1 files changed, 5 insertions, 20 deletions
diff --git a/pkgs/tools/system/foreman/default.nix b/pkgs/tools/system/foreman/default.nix index 594947c265a34..1c74724793d4b 100644 --- a/pkgs/tools/system/foreman/default.nix +++ b/pkgs/tools/system/foreman/default.nix @@ -1,24 +1,9 @@ -{ stdenv, lib, ruby, bundlerEnv, makeWrapper }: +{ bundlerEnv, lib, ruby }: -stdenv.mkDerivation rec { - name = "foreman-${env.gems.foreman.version}"; - - env = bundlerEnv { - inherit ruby; - name = "${name}-gems"; - gemfile = ./Gemfile; - lockfile = ./Gemfile.lock; - gemset = ./gemset.nix; - }; - - phases = ["installPhase"]; - - nativeBuildInputs = [ makeWrapper ]; - - installPhase = '' - mkdir -p $out/bin - makeWrapper ${env}/bin/foreman $out/bin/foreman - ''; +bundlerEnv { + inherit ruby; + pName = "foreman"; + gemdir = ./.; meta = with lib; { description = "Process manager for applications with multiple components"; |