3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/tools/misc/watson-ruby/default.nix
2019-07-22 12:02:47 +00:00

32 lines
803 B
Nix

{ stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
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
'';
passthru.updateScript = bundlerUpdateScript "watson-ruby";
meta = with stdenv.lib; {
description = "An inline issue manager";
homepage = http://goosecode.com/watson/;
license = with licenses; mit;
maintainers = with maintainers; [ robertodr nicknovitski ];
platforms = platforms.unix;
};
}