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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
842 B
Nix
Raw Normal View History

{ stdenv, lib, bundlerEnv, bundlerUpdateScript, makeWrapper, groff, callPackage }:
2016-06-30 09:12:24 +00:00
stdenv.mkDerivation rec {
pname = "ronn";
2016-06-30 09:12:24 +00:00
version = env.gems.ronn.version;
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
nativeBuildInputs = [ makeWrapper ];
2016-06-30 09:12:24 +00:00
installPhase = ''
mkdir -p $out/bin
makeWrapper ${env}/bin/ronn $out/bin/ronn \
--set PATH ${groff}/bin
'';
passthru.updateScript = bundlerUpdateScript "ronn";
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";
homepage = "https://rtomayko.github.io/ronn/";
2016-06-30 09:12:24 +00:00
license = licenses.mit;
maintainers = with maintainers; [ zimbatm nicknovitski ];
2016-06-30 09:12:24 +00:00
platforms = env.ruby.meta.platforms;
};
}