mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-24 22:50:49 +00:00
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 {
|
||||
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";
|
||||
|
|
Loading…
Reference in a new issue