@@ -1,14 +1,25 @@
1−{ lib, bundlerEnv, ruby }:
1+{ stdenv, bundlerEnv, ruby }:
22
3−bundlerEnv rec {
4− name = "watson-ruby-${version}";
53
4+stdenv.mkDerivation rec {
5+ name = "watson-ruby-${version}";
66 version = (import ./gemset.nix).watson-ruby.version;
7− inherit ruby;
8− # expects Gemfile, Gemfile.lock and gemset.nix in the same directory
9− gemdir = ./.;
107
11− meta = with lib; {
8+ env = bundlerEnv rec {
9+ name = "watson-ruby-gems-${version}";
10+ inherit ruby;
11+ # expects Gemfile, Gemfile.lock and gemset.nix in the same directory
12+ gemdir = ./.;
13+ };
14+
15+ phases = [ "installPhase" ];
16+
17+ installPhase = ''
18+ mkdir -p $out/bin
19+ ln -s ${env}/bin/watson $out/bin/watson
20+ '';
21+
22+ meta = with stdenv.lib; {
1223 description = "An inline issue manager";
1324 homepage = http://goosecode.com/watson/;
1425 license = with licenses; mit;