2022-01-18 15:30:21 +00:00
|
|
|
{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, groff, callPackage }:
|
2016-06-30 09:12:24 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "ronn";
|
2022-04-22 09:18:05 +00:00
|
|
|
version = env.gems.ronn-ng.version;
|
2016-06-30 09:12:24 +00:00
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
env = bundlerEnv {
|
2016-06-30 09:12:24 +00:00
|
|
|
name = "ronn-gems";
|
2017-01-17 23:31:07 +00:00
|
|
|
gemdir = ./.;
|
2016-06-30 09:12:24 +00:00
|
|
|
};
|
|
|
|
|
2021-07-24 23:33:28 +00:00
|
|
|
dontUnpack = true;
|
2016-06-30 09:12:24 +00:00
|
|
|
|
2022-04-22 09:18:05 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
makeWrapper
|
|
|
|
];
|
2016-06-30 09:12:24 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
2022-04-22 09:18:05 +00:00
|
|
|
runHook preInstall
|
|
|
|
|
2016-06-30 09:12:24 +00:00
|
|
|
mkdir -p $out/bin
|
|
|
|
makeWrapper ${env}/bin/ronn $out/bin/ronn \
|
|
|
|
--set PATH ${groff}/bin
|
2022-04-22 09:18:05 +00:00
|
|
|
|
|
|
|
runHook postInstall
|
2016-06-30 09:12:24 +00:00
|
|
|
'';
|
|
|
|
|
2019-07-22 12:02:47 +00:00
|
|
|
passthru.updateScript = bundlerUpdateScript "ronn";
|
|
|
|
|
2022-01-18 15:30:21 +00:00
|
|
|
passthru.tests.reproducible-html-manpage = callPackage ./test-reproducible-html.nix { };
|
|
|
|
|
2016-06-30 09:12:24 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "markdown-based tool for building manpages";
|
2022-04-22 09:18:05 +00:00
|
|
|
homepage = "https://github.com/apjanke/ronn-ng";
|
2016-06-30 09:12:24 +00:00
|
|
|
license = licenses.mit;
|
2019-07-22 12:02:47 +00:00
|
|
|
maintainers = with maintainers; [ zimbatm nicknovitski ];
|
2016-06-30 09:12:24 +00:00
|
|
|
platforms = env.ruby.meta.platforms;
|
|
|
|
};
|
|
|
|
}
|