1{ stdenv, bundlerEnv, ruby }:
2
3
4stdenv.mkDerivation rec {
5 name = "watson-ruby-${version}";
6 version = (import ./gemset.nix).watson-ruby.version;
7
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; {
23 description = "An inline issue manager";
24 homepage = http://goosecode.com/watson/;
25 license = with licenses; mit;
26 maintainers = with maintainers; [ robertodr ];
27 platforms = platforms.unix;
28 };
29}