nixpkgs/pkgs/development/tools/ronn/default.nix
Jan Tojnar 49dace3857
ronn: 0.7.3 → 0.9.1 (#169617)
The original ronn has long been unmaintained.
Let’s switch to the same fork Alpine and Debian use,
since there are projects expecting ronn to support
command-line arguments introduced by this fork.

Fixes: https://github.com/NixOS/nixpkgs/issues/168103
2022-04-22 11:18:05 +02:00

40 lines
902 B
Nix

{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, groff, callPackage }:
stdenv.mkDerivation rec {
pname = "ronn";
version = env.gems.ronn-ng.version;
env = bundlerEnv {
name = "ronn-gems";
gemdir = ./.;
};
dontUnpack = true;
nativeBuildInputs = [
makeWrapper
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin
makeWrapper ${env}/bin/ronn $out/bin/ronn \
--set PATH ${groff}/bin
runHook postInstall
'';
passthru.updateScript = bundlerUpdateScript "ronn";
passthru.tests.reproducible-html-manpage = callPackage ./test-reproducible-html.nix { };
meta = with lib; {
description = "markdown-based tool for building manpages";
homepage = "https://github.com/apjanke/ronn-ng";
license = licenses.mit;
maintainers = with maintainers; [ zimbatm nicknovitski ];
platforms = env.ruby.meta.platforms;
};
}