2019-07-22 13:02:47 +01:00
|
|
|
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, groff }:
|
2016-06-30 10:12:24 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "ronn";
|
2016-06-30 10:12:24 +01:00
|
|
|
version = env.gems.ronn.version;
|
|
|
|
|
2019-08-13 22:52:01 +01:00
|
|
|
env = bundlerEnv {
|
2016-06-30 10:12:24 +01:00
|
|
|
name = "ronn-gems";
|
2017-01-17 23:31:07 +00:00
|
|
|
gemdir = ./.;
|
2016-06-30 10:12:24 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
phases = ["installPhase"];
|
|
|
|
|
|
|
|
buildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/ronn $out/bin/ronn \
|
|
|
|
--set PATH ${groff}/bin
|
|
|
|
'';
|
|
|
|
|
2019-07-22 13:02:47 +01:00
|
|
|
passthru.updateScript = bundlerUpdateScript "ronn";
|
|
|
|
|
2016-06-30 10:12:24 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "markdown-based tool for building manpages";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://rtomayko.github.io/ronn/";
|
2016-06-30 10:12:24 +01:00
|
|
|
license = licenses.mit;
|
2019-07-22 13:02:47 +01:00
|
|
|
maintainers = with maintainers; [ zimbatm nicknovitski ];
|
2016-06-30 10:12:24 +01:00
|
|
|
platforms = env.ruby.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|