Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
43 lines
870 B
Nix
43 lines
870 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 = "Inline issue manager";
|
|
homepage = "https://goosecode.com/watson/";
|
|
license = with licenses; mit;
|
|
maintainers = with maintainers; [
|
|
robertodr
|
|
nicknovitski
|
|
];
|
|
mainProgram = "watson";
|
|
platforms = platforms.unix;
|
|
};
|
|
}
|