From 407d8dac85e9a1901091955e078345ee9d5313c6 Mon Sep 17 00:00:00 2001 From: Joerg Thalheim Date: Mon, 25 Sep 2017 15:49:14 +0100 Subject: watson-ruby: hide bundlerEnv to avoid collisions bundlerEnv also comes with a bundle script and ruby libraries --- .../development/tools/misc/watson-ruby/default.nix | 25 ++++++++++++++++------ 1 file changed, 18 insertions(+), 7 deletions(-) diff --git a/pkgs/development/tools/misc/watson-ruby/default.nix b/pkgs/development/tools/misc/watson-ruby/default.nix index 860358354540..32f94a1f2285 100644 --- a/pkgs/development/tools/misc/watson-ruby/default.nix +++ b/pkgs/development/tools/misc/watson-ruby/default.nix @@ -1,14 +1,25 @@ -{ lib, bundlerEnv, ruby }: +{ stdenv, bundlerEnv, ruby }: -bundlerEnv rec { - name = "watson-ruby-${version}"; +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; -- cgit 1.4.1