summary refs log tree commit diff
path: root/pkgs/development/tools/misc/watson-ruby/default.nix
blob: 32f94a1f2285eae9d03efaa864a5698abaee7c7b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ stdenv, bundlerEnv, ruby }:


stdenv.mkDerivation rec {
  name = "watson-ruby-${version}";
  version = (import ./gemset.nix).watson-ruby.version;

  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;
    maintainers = with maintainers; [ robertodr ];
    platforms   = platforms.unix;
  };
}