nixpkgs/pkgs/development/tools/ronn/default.nix

32 lines
739 B
Nix
Raw Normal View History

{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, groff }:
2016-06-30 11:12:24 +02:00
stdenv.mkDerivation rec {
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"];
buildInputs = [ makeWrapper ];
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/ronn $out/bin/ronn \
--set PATH ${groff}/bin
'';
passthru.updateScript = bundlerUpdateScript "ronn";
2016-06-30 11:12:24 +02:00
meta = with lib; {
description = "markdown-based tool for building manpages";
homepage = "https://rtomayko.github.io/ronn/";
2016-06-30 11:12:24 +02:00
license = licenses.mit;
maintainers = with maintainers; [ zimbatm nicknovitski ];
2016-06-30 11:12:24 +02:00
platforms = env.ruby.meta.platforms;
};
}