2021-01-23 12:26:19 +00:00
|
|
|
{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
|
2017-09-25 13:51:16 +00:00
|
|
|
|
2017-09-25 14:49:14 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "watson-ruby";
|
2017-09-25 13:51:16 +00:00
|
|
|
version = (import ./gemset.nix).watson-ruby.version;
|
|
|
|
|
2021-07-27 12:33:36 +00:00
|
|
|
dontUnpack = true;
|
2017-09-25 14:49:14 +00:00
|
|
|
|
2019-11-10 01:13:39 +00:00
|
|
|
installPhase = let
|
|
|
|
env = bundlerEnv {
|
|
|
|
name = "watson-ruby-gems-${version}";
|
|
|
|
inherit ruby;
|
|
|
|
# expects Gemfile, Gemfile.lock and gemset.nix in the same directory
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
in ''
|
2017-09-25 14:49:14 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
ln -s ${env}/bin/watson $out/bin/watson
|
|
|
|
'';
|
|
|
|
|
2019-07-22 12:02:47 +00:00
|
|
|
passthru.updateScript = bundlerUpdateScript "watson-ruby";
|
|
|
|
|
2021-01-23 12:26:19 +00:00
|
|
|
meta = with lib; {
|
2017-09-25 13:51:16 +00:00
|
|
|
description = "An inline issue manager";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://goosecode.com/watson/";
|
2017-09-25 13:51:16 +00:00
|
|
|
license = with licenses; mit;
|
2019-07-22 12:02:47 +00:00
|
|
|
maintainers = with maintainers; [ robertodr nicknovitski ];
|
2017-09-25 13:51:16 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|