foreman: simplify
This commit is contained in:
parent
2a194746a5
commit
194ac466ee
@ -1,24 +1,9 @@
|
|||||||
{ stdenv, lib, ruby, bundlerEnv, makeWrapper }:
|
{ bundlerEnv, lib, ruby }:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
bundlerEnv {
|
||||||
name = "foreman-${env.gems.foreman.version}";
|
|
||||||
|
|
||||||
env = bundlerEnv {
|
|
||||||
inherit ruby;
|
inherit ruby;
|
||||||
name = "${name}-gems";
|
pName = "foreman";
|
||||||
gemfile = ./Gemfile;
|
gemdir = ./.;
|
||||||
lockfile = ./Gemfile.lock;
|
|
||||||
gemset = ./gemset.nix;
|
|
||||||
};
|
|
||||||
|
|
||||||
phases = ["installPhase"];
|
|
||||||
|
|
||||||
nativeBuildInputs = [ makeWrapper ];
|
|
||||||
|
|
||||||
installPhase = ''
|
|
||||||
mkdir -p $out/bin
|
|
||||||
makeWrapper ${env}/bin/foreman $out/bin/foreman
|
|
||||||
'';
|
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Process manager for applications with multiple components";
|
description = "Process manager for applications with multiple components";
|
||||||
|
Loading…
Reference in New Issue
Block a user