Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

43 lines
870 B
Nix
Raw Permalink Normal View History

2025-10-09 14:15:47 +02:00
{
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 = "Inline issue manager";
homepage = "https://goosecode.com/watson/";
license = with licenses; mit;
maintainers = with maintainers; [
robertodr
nicknovitski
];
mainProgram = "watson";
platforms = platforms.unix;
};
}