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