depot/third_party/nixpkgs/pkgs/development/tools/misc/watson-ruby/default.nix
Default email ae91cbe6cc Project import generated by Copybara.
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
2021-02-05 18:12:51 +01:00

30 lines
809 B
Nix

{ lib, stdenv, bundlerEnv, ruby, bundlerUpdateScript }:
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";
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;
};
}