2021-02-05 17:12:51 +00:00
|
|
|
{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "watson-ruby";
|
|
|
|
version = (import ./gemset.nix).watson-ruby.version;
|
|
|
|
|
|
|
|
phases = [ "installPhase" ];
|
|
|
|
|
|
|
|
installPhase = let
|
|
|
|
env = bundlerEnv {
|
|
|
|
name = "watson-ruby-gems-${version}";
|
|
|
|
inherit ruby;
|
|
|
|
# expects Gemfile, Gemfile.lock and gemset.nix in the same directory
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
in ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s ${env}/bin/watson $out/bin/watson
|
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = bundlerUpdateScript "watson-ruby";
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "An inline issue manager";
|
|
|
|
homepage = "https://goosecode.com/watson/";
|
|
|
|
license = with licenses; mit;
|
|
|
|
maintainers = with maintainers; [ robertodr nicknovitski ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|