2022-01-19 23:45:15 +00:00
|
|
|
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, groff, callPackage }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "ronn";
|
2022-04-27 09:35:20 +00:00
|
|
|
version = env.gems.ronn-ng.version;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
env = bundlerEnv {
|
|
|
|
name = "ronn-gems";
|
|
|
|
gemdir = ./.;
|
|
|
|
};
|
|
|
|
|
2021-08-05 21:33:18 +00:00
|
|
|
dontUnpack = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2022-04-27 09:35:20 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/ronn $out/bin/ronn \
|
|
|
|
--set PATH ${groff}/bin
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
passthru.updateScript = bundlerUpdateScript "ronn";
|
|
|
|
|
2022-01-19 23:45:15 +00:00
|
|
|
passthru.tests.reproducible-html-manpage = callPackage ./test-reproducible-html.nix { };
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "markdown-based tool for building manpages";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "ronn";
|
2022-04-27 09:35:20 +00:00
|
|
|
homepage = "https://github.com/apjanke/ronn-ng";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ zimbatm nicknovitski ];
|
|
|
|
platforms = env.ruby.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|