1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-02 10:31:36 +00:00
nixpkgs/pkgs/tools/system/foreman/default.nix

31 lines
722 B
Nix
Raw Normal View History

2016-03-17 10:42:36 +00:00
{ stdenv, lib, ruby, bundlerEnv, makeWrapper }:
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
'';
meta = with lib; {
description = "Process manager for applications with multiple components";
homepage = https://github.com/ddollar/foreman;
license = licenses.mit;
maintainers = with maintainers; [ zimbatm ];
platforms = ruby.meta.platforms;
};
}