mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-16 18:53:17 +00:00
32 lines
737 B
Nix
32 lines
737 B
Nix
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, groff }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "ronn";
|
|
version = env.gems.ronn.version;
|
|
|
|
env = bundlerEnv {
|
|
name = "ronn-gems";
|
|
gemdir = ./.;
|
|
};
|
|
|
|
dontUnpack = true;
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${env}/bin/ronn $out/bin/ronn \
|
|
--set PATH ${groff}/bin
|
|
'';
|
|
|
|
passthru.updateScript = bundlerUpdateScript "ronn";
|
|
|
|
meta = with lib; {
|
|
description = "markdown-based tool for building manpages";
|
|
homepage = "https://rtomayko.github.io/ronn/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ zimbatm nicknovitski ];
|
|
platforms = env.ruby.meta.platforms;
|
|
};
|
|
}
|