nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 stdenv,
3 lib,
4 bundlerEnv,
5 bundlerUpdateScript,
6 makeWrapper,
7 groff,
8 callPackage,
9}:
10let
11 rubyEnv = bundlerEnv {
12 name = "ronn-gems";
13 gemdir = ./.;
14 };
15in
16stdenv.mkDerivation {
17 pname = "ronn";
18 version = rubyEnv.gems.ronn-ng.version;
19
20 dontUnpack = true;
21
22 nativeBuildInputs = [
23 makeWrapper
24 ];
25
26 installPhase = ''
27 runHook preInstall
28
29 mkdir -p $out/bin
30 makeWrapper ${rubyEnv}/bin/ronn $out/bin/ronn \
31 --set PATH ${groff}/bin
32
33 runHook postInstall
34 '';
35
36 passthru.updateScript = bundlerUpdateScript "ronn";
37
38 passthru.tests.reproducible-html-manpage = callPackage ./test-reproducible-html.nix { };
39
40 meta = with lib; {
41 description = "Markdown-based tool for building manpages";
42 mainProgram = "ronn";
43 homepage = "https://github.com/apjanke/ronn-ng";
44 license = licenses.mit;
45 maintainers = with maintainers; [
46 zimbatm
47 nicknovitski
48 ];
49 platforms = rubyEnv.ruby.meta.platforms;
50 };
51}