summary refs log blame commit diff
path: root/pkgs/tools/typesetting/kramdown-asciidoc/default.nix
blob: ebe57e3695f5e0b39fcd1b9a89118b78ffcaf430 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

                                      
            











                                
                                          


                                                    
                                                                                                  






                                                               
                                                                                         
                                            






                                          
{ lib, bundlerApp, makeWrapper,
  # Optional dependencies, can be null
  epubcheck,
  bundlerUpdateScript
}:

let
  app = bundlerApp {
    pname = "kramdown-asciidoc";
    gemdir = ./.;

    exes = [
      "kramdoc"
    ];

    # nativeBuildInputs = [ makeWrapper ];

    # postBuild = ''
    #     wrapProgram "$out/bin/asciidoctor-epub3" \
    #       ${lib.optionalString (epubcheck != null) "--set EPUBCHECK ${epubcheck}/bin/epubcheck"}
    #   '';

    # passthru = {
    #   updateScript = bundlerUpdateScript "kramdown-asciidoc";
    # };

    meta = with lib; {
      description = "A kramdown extension for converting Markdown documents to AsciiDoc";
      homepage = "https://asciidoctor.org/";
      license = licenses.mit;
      maintainers = with maintainers; [ ];
      platforms = platforms.unix;
    };
  };
in
  app