nixpkgs/pkgs/development/tools/misc/watson-ruby/default.nix

32 lines
827 B
Nix
Raw Normal View History

{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
2017-09-25 13:51:16 +00:00
stdenv.mkDerivation rec {
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;
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";
meta = with lib; {
2017-09-25 13:51:16 +00:00
description = "An inline issue manager";
homepage = "https://goosecode.com/watson/";
2017-09-25 13:51:16 +00:00
license = with licenses; mit;
maintainers = with maintainers; [ robertodr nicknovitski ];
mainProgram = "watson";
2017-09-25 13:51:16 +00:00
platforms = platforms.unix;
};
}