diff --git a/pkgs/tools/typesetting/kramdown-asciidoc/Gemfile b/pkgs/tools/typesetting/kramdown-asciidoc/Gemfile new file mode 100644 index 000000000000..33585ea850ef --- /dev/null +++ b/pkgs/tools/typesetting/kramdown-asciidoc/Gemfile @@ -0,0 +1,2 @@ +source 'https://rubygems.org' +gem 'kramdown-asciidoc' diff --git a/pkgs/tools/typesetting/kramdown-asciidoc/Gemfile.lock b/pkgs/tools/typesetting/kramdown-asciidoc/Gemfile.lock new file mode 100644 index 000000000000..f47f401367c8 --- /dev/null +++ b/pkgs/tools/typesetting/kramdown-asciidoc/Gemfile.lock @@ -0,0 +1,15 @@ +GEM + remote: https://rubygems.org/ + specs: + kramdown (1.17.0) + kramdown-asciidoc (1.0.1) + kramdown (~> 1.17.0) + +PLATFORMS + ruby + +DEPENDENCIES + kramdown-asciidoc + +BUNDLED WITH + 1.17.3 diff --git a/pkgs/tools/typesetting/kramdown-asciidoc/default.nix b/pkgs/tools/typesetting/kramdown-asciidoc/default.nix new file mode 100644 index 000000000000..f37be270ddbe --- /dev/null +++ b/pkgs/tools/typesetting/kramdown-asciidoc/default.nix @@ -0,0 +1,37 @@ +{ lib, bundlerApp, makeWrapper, + # Optional dependencies, can be null + epubcheck, kindlegen, + bundlerUpdateScript +}: + +let + app = bundlerApp { + pname = "kramdown-asciidoc"; + gemdir = ./.; + + exes = [ + "kramdoc" + ]; + + # buildInputs = [ makeWrapper ]; + + # postBuild = '' + # wrapProgram "$out/bin/asciidoctor-epub3" \ + # ${lib.optionalString (epubcheck != null) "--set EPUBCHECK ${epubcheck}/bin/epubcheck"} \ + # ${lib.optionalString (kindlegen != null) "--set KINDLEGEN ${kindlegen}/bin/kindlegen"} + # ''; + + # 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 diff --git a/pkgs/tools/typesetting/kramdown-asciidoc/gemset.nix b/pkgs/tools/typesetting/kramdown-asciidoc/gemset.nix new file mode 100644 index 000000000000..8a0ffda9e782 --- /dev/null +++ b/pkgs/tools/typesetting/kramdown-asciidoc/gemset.nix @@ -0,0 +1,23 @@ +{ + kramdown = { + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1n1c4jmrh5ig8iv1rw81s4mw4xsp4v97hvf8zkigv4hn5h542qjq"; + type = "gem"; + }; + version = "1.17.0"; + }; + kramdown-asciidoc = { + dependencies = ["kramdown"]; + groups = ["default"]; + platforms = []; + source = { + remotes = ["https://rubygems.org"]; + sha256 = "1nr4hss1byhchwkqy2w0dgc7s83n0s5xm0pjms2cmckc4sbrryxi"; + type = "gem"; + }; + version = "1.0.1"; + }; +} \ No newline at end of file diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a1268532fae2..683cd1c08919 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -2964,6 +2964,8 @@ in ssh = openssh; }; + kramdown-asciidoc = callPackage ../tools/typesetting/kramdown-asciidoc { }; + mcrcon = callPackage ../tools/networking/mcrcon {}; rage = callPackage ../tools/security/rage { @@ -7591,7 +7593,7 @@ in zpaqd = callPackage ../tools/archivers/zpaq/zpaqd.nix { }; zsh-autoenv = callPackage ../tools/misc/zsh-autoenv { }; - + zsh-bd = callPackage ../shells/zsh/zsh-bd { }; zsh-git-prompt = callPackage ../shells/zsh/zsh-git-prompt { };