depot/third_party/nixpkgs/pkgs/development/tools/misc/watson-ruby/default.nix
Default email a3bb8d7922 Project import generated by Copybara.
GitOrigin-RevId: 439b1605227b8adb1357b55ce8529d541abbe9eb
2021-08-06 00:33:18 +03:00

30 lines
799 B
Nix

{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
stdenv.mkDerivation rec {
pname = "watson-ruby";
version = (import ./gemset.nix).watson-ruby.version;
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; {
description = "An inline issue manager";
homepage = "https://goosecode.com/watson/";
license = with licenses; mit;
maintainers = with maintainers; [ robertodr nicknovitski ];
platforms = platforms.unix;
};
}