watson-ruby: hide bundlerEnv to avoid collisions
bundlerEnv also comes with a bundle script and ruby libraries
This commit is contained in:
parent
932bd98510
commit
407d8dac85
@ -1,14 +1,25 @@
|
|||||||
{ lib, bundlerEnv, ruby }:
|
{ stdenv, bundlerEnv, ruby }:
|
||||||
|
|
||||||
bundlerEnv rec {
|
|
||||||
|
stdenv.mkDerivation rec {
|
||||||
name = "watson-ruby-${version}";
|
name = "watson-ruby-${version}";
|
||||||
|
|
||||||
version = (import ./gemset.nix).watson-ruby.version;
|
version = (import ./gemset.nix).watson-ruby.version;
|
||||||
inherit ruby;
|
|
||||||
# expects Gemfile, Gemfile.lock and gemset.nix in the same directory
|
|
||||||
gemdir = ./.;
|
|
||||||
|
|
||||||
meta = with lib; {
|
env = bundlerEnv rec {
|
||||||
|
name = "watson-ruby-gems-${version}";
|
||||||
|
inherit ruby;
|
||||||
|
# expects Gemfile, Gemfile.lock and gemset.nix in the same directory
|
||||||
|
gemdir = ./.;
|
||||||
|
};
|
||||||
|
|
||||||
|
phases = [ "installPhase" ];
|
||||||
|
|
||||||
|
installPhase = ''
|
||||||
|
mkdir -p $out/bin
|
||||||
|
ln -s ${env}/bin/watson $out/bin/watson
|
||||||
|
'';
|
||||||
|
|
||||||
|
meta = with stdenv.lib; {
|
||||||
description = "An inline issue manager";
|
description = "An inline issue manager";
|
||||||
homepage = http://goosecode.com/watson/;
|
homepage = http://goosecode.com/watson/;
|
||||||
license = with licenses; mit;
|
license = with licenses; mit;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user