watson-ruby: hide bundlerEnv to avoid collisions

bundlerEnv also comes with a bundle script and ruby libraries
This commit is contained in:
Joerg Thalheim 2017-09-25 15:49:14 +01:00
parent 932bd98510
commit 407d8dac85
1 changed files with 18 additions and 7 deletions

View File

@ -1,14 +1,25 @@
{ lib, bundlerEnv, ruby }:
{ stdenv, bundlerEnv, ruby }:
bundlerEnv rec {
stdenv.mkDerivation rec {
name = "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";
homepage = http://goosecode.com/watson/;
license = with licenses; mit;