2019-07-22 13:02:47 +01:00
|
|
|
{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
2017-09-25 14:51:16 +01:00
|
|
|
|
|
|
|
|
2017-09-25 15:49:14 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "watson-ruby-${version}";
|
2017-09-25 14:51:16 +01:00
|
|
|
version = (import ./gemset.nix).watson-ruby.version;
|
|
|
|
|
2017-09-25 15:49:14 +01:00
|
|
|
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
|
|
|
|
'';
|
|
|
|
|
2019-07-22 13:02:47 +01:00
|
|
|
passthru.updateScript = bundlerUpdateScript "watson-ruby";
|
|
|
|
|
2017-09-25 15:49:14 +01:00
|
|
|
meta = with stdenv.lib; {
|
2017-09-25 14:51:16 +01:00
|
|
|
description = "An inline issue manager";
|
|
|
|
homepage = http://goosecode.com/watson/;
|
|
|
|
license = with licenses; mit;
|
2019-07-22 13:02:47 +01:00
|
|
|
maintainers = with maintainers; [ robertodr nicknovitski ];
|
2017-09-25 14:51:16 +01:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|