diff --git a/pkgs/tools/typesetting/asciidoctor/Gemfile b/pkgs/tools/typesetting/asciidoctor/Gemfile index 702dabee2e07..32e18b53aa65 100644 --- a/pkgs/tools/typesetting/asciidoctor/Gemfile +++ b/pkgs/tools/typesetting/asciidoctor/Gemfile @@ -1,10 +1,6 @@ source 'https://rubygems.org' gem 'asciidoctor' -gem 'asciidoctor-diagram' gem 'asciidoctor-pdf' -gem 'asciidoctor-epub3' -gem 'asciidoctor-mathematical' -gem 'asciidoctor-revealjs' gem 'coderay' gem 'pygments.rb' gem 'rouge' diff --git a/pkgs/tools/typesetting/asciidoctor/Gemfile.lock b/pkgs/tools/typesetting/asciidoctor/Gemfile.lock index e7a1bdcfd800..5c607d269b22 100644 --- a/pkgs/tools/typesetting/asciidoctor/Gemfile.lock +++ b/pkgs/tools/typesetting/asciidoctor/Gemfile.lock @@ -6,21 +6,6 @@ GEM public_suffix (>= 2.0.2, < 5.0) afm (0.2.2) asciidoctor (2.0.16) - asciidoctor-diagram (2.2.1) - asciidoctor (>= 1.5.7, < 3.x) - asciidoctor-diagram-ditaamini (~> 1.0) - asciidoctor-diagram-plantuml (~> 1.2021) - rexml - asciidoctor-diagram-ditaamini (1.0.1) - asciidoctor-diagram-plantuml (1.2021.8) - asciidoctor-epub3 (1.5.1) - asciidoctor (>= 1.5.6, < 3.0.0) - gepub (~> 1.0.0) - mime-types (~> 3.0) - asciidoctor-mathematical (0.3.5) - asciidoctor (~> 2.0) - asciimath (~> 2.0) - mathematical (~> 1.6.0) asciidoctor-pdf (1.6.1) asciidoctor (~> 2.0) concurrent-ruby (~> 1.1) @@ -31,32 +16,13 @@ GEM prawn-templates (~> 0.1.0) safe_yaml (~> 1.0.0) treetop (~> 1.6.0) - asciidoctor-revealjs (4.1.0) - asciidoctor (>= 2.0.0, < 3.0.0) - concurrent-ruby (~> 1.0) - thread_safe (~> 0.3.5) - asciimath (2.0.3) coderay (1.1.3) concurrent-ruby (1.1.9) css_parser (1.10.0) addressable - gepub (1.0.15) - nokogiri (>= 1.8.2, < 2.0) - rubyzip (> 1.1.1, < 2.4) hashery (2.1.2) - i18n (1.8.11) - concurrent-ruby (~> 1.0) - mathematical (1.6.14) - ruby-enum (~> 0.4) - mime-types (3.3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2021.0901) - mini_portile2 (2.6.1) - nokogiri (1.12.5) - mini_portile2 (~> 2.6.1) - racc (~> 1.4) pdf-core (0.9.0) - pdf-reader (2.5.0) + pdf-reader (2.6.0) Ascii85 (~> 1.0) afm (~> 0.2.1) hashery (~> 2.0) @@ -79,15 +45,10 @@ GEM prawn (~> 2.2) public_suffix (4.0.6) pygments.rb (2.2.0) - racc (1.6.0) rexml (3.2.5) rouge (3.26.1) - ruby-enum (0.9.0) - i18n ruby-rc4 (0.1.5) - rubyzip (2.3.2) safe_yaml (1.0.5) - thread_safe (0.3.6) treetop (1.6.11) polyglot (~> 0.3) ttfunk (1.7.0) @@ -97,11 +58,7 @@ PLATFORMS DEPENDENCIES asciidoctor - asciidoctor-diagram - asciidoctor-epub3 - asciidoctor-mathematical asciidoctor-pdf - asciidoctor-revealjs coderay pygments.rb rouge diff --git a/pkgs/tools/typesetting/asciidoctor/default.nix b/pkgs/tools/typesetting/asciidoctor/default.nix index 73fb46d2e606..5f78c12508d1 100644 --- a/pkgs/tools/typesetting/asciidoctor/default.nix +++ b/pkgs/tools/typesetting/asciidoctor/default.nix @@ -1,39 +1,26 @@ -{ lib, bundlerApp, makeWrapper, - # Optional dependencies, can be null - epubcheck, - bundlerUpdateScript +{ lib +, bundlerApp +, bundlerUpdateScript }: -let - app = bundlerApp { - pname = "asciidoctor"; - gemdir = ./.; +bundlerApp { + pname = "asciidoctor"; + gemdir = ./.; - exes = [ - "asciidoctor" - "asciidoctor-pdf" - "asciidoctor-epub3" - "asciidoctor-revealjs" - ]; + exes = [ + "asciidoctor" + "asciidoctor-pdf" + ]; - buildInputs = [ makeWrapper ]; - - postBuild = '' - wrapProgram "$out/bin/asciidoctor-epub3" \ - ${lib.optionalString (epubcheck != null) "--set EPUBCHECK ${epubcheck}/bin/epubcheck"} - ''; - - passthru = { - updateScript = bundlerUpdateScript "asciidoctor"; - }; - - meta = with lib; { - description = "A faster Asciidoc processor written in Ruby"; - homepage = "https://asciidoctor.org/"; - license = licenses.mit; - maintainers = with maintainers; [ gpyh nicknovitski ]; - platforms = platforms.unix; - }; + passthru = { + updateScript = bundlerUpdateScript "asciidoctor"; }; -in - app + + meta = with lib; { + description = "A faster Asciidoc processor written in Ruby"; + homepage = "https://asciidoctor.org/"; + license = licenses.mit; + maintainers = with maintainers; [ gpyh nicknovitski ]; + platforms = platforms.unix; + }; +} diff --git a/pkgs/tools/typesetting/asciidoctor/gemset.nix b/pkgs/tools/typesetting/asciidoctor/gemset.nix index b227121d6b86..b57d1e5ac4ad 100644 --- a/pkgs/tools/typesetting/asciidoctor/gemset.nix +++ b/pkgs/tools/typesetting/asciidoctor/gemset.nix @@ -40,59 +40,6 @@ }; version = "2.0.16"; }; - asciidoctor-diagram = { - dependencies = ["asciidoctor" "asciidoctor-diagram-ditaamini" "asciidoctor-diagram-plantuml" "rexml"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1z1ilpczjaydhcwpz3yygn03yrx2ljjj55xczwkrlb8rzgh03br3"; - type = "gem"; - }; - version = "2.2.1"; - }; - asciidoctor-diagram-ditaamini = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1nva5n6nyns0xp77d1dxng1rjhc8ma6gyd8hczjq3h9qqxcw2q4h"; - type = "gem"; - }; - version = "1.0.1"; - }; - asciidoctor-diagram-plantuml = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "0n018kmqzapf5y1bacb5yyvb9jfwxdkfqnviwxivwz9322b9w6j7"; - type = "gem"; - }; - version = "1.2021.8"; - }; - asciidoctor-epub3 = { - dependencies = ["asciidoctor" "gepub" "mime-types"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "05lylv2k18vcnf3647n47zdqxpa70bg16znzn252ymp8say25zzg"; - type = "gem"; - }; - version = "1.5.1"; - }; - asciidoctor-mathematical = { - dependencies = ["asciidoctor" "asciimath" "mathematical"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1lxfq7qn3ql642pva6jh3h1abm9j9daxg5icfn1h73k6cjsmcisp"; - type = "gem"; - }; - version = "0.3.5"; - }; asciidoctor-pdf = { dependencies = ["asciidoctor" "concurrent-ruby" "prawn" "prawn-icon" "prawn-svg" "prawn-table" "prawn-templates" "safe_yaml" "treetop"]; groups = ["default"]; @@ -104,27 +51,6 @@ }; version = "1.6.1"; }; - asciidoctor-revealjs = { - dependencies = ["asciidoctor" "concurrent-ruby" "thread_safe"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "03vmbcc3x059h17ry4qwk1p0yar9wgh87l2qssi307gy45cjw2mq"; - type = "gem"; - }; - version = "4.1.0"; - }; - asciimath = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "0h4fz93pf96y5syxwpv0vibjf7lidv2718ikpvyd2vy8c1am8zyn"; - type = "gem"; - }; - version = "2.0.3"; - }; coderay = { groups = ["default"]; platforms = []; @@ -156,17 +82,6 @@ }; version = "1.10.0"; }; - gepub = { - dependencies = ["nokogiri" "rubyzip"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "08fny807zd4700f263ckc76bladjipsniyk3clv8a7x76x3fqshx"; - type = "gem"; - }; - version = "1.0.15"; - }; hashery = { groups = ["default"]; platforms = []; @@ -177,70 +92,6 @@ }; version = "2.1.2"; }; - i18n = { - dependencies = ["concurrent-ruby"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "0vdd1kii40qhbr9n8qx71k2gskq6rkl8ygy8hw5hfj8bb5a364xf"; - type = "gem"; - }; - version = "1.8.11"; - }; - mathematical = { - dependencies = ["ruby-enum"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "05mn68gxhfa37qsnzsmdqaa005hf511j5lga76qsrad2gcnhan1b"; - type = "gem"; - }; - version = "1.6.14"; - }; - mime-types = { - dependencies = ["mime-types-data"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1zj12l9qk62anvk9bjvandpa6vy4xslil15wl6wlivyf51z773vh"; - type = "gem"; - }; - version = "3.3.1"; - }; - mime-types-data = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1z5wvk6qi4ws1kjh7xn1rfirqw5m72bwvqacck1fjpbh33pcrwxv"; - type = "gem"; - }; - version = "3.2021.0901"; - }; - mini_portile2 = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1lvxm91hi0pabnkkg47wh1siv56s6slm2mdq1idfm86dyfidfprq"; - type = "gem"; - }; - version = "2.6.1"; - }; - nokogiri = { - dependencies = ["mini_portile2" "racc"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1v02g7k7cxiwdcahvlxrmizn3avj2q6nsjccgilq1idc89cr081b"; - type = "gem"; - }; - version = "1.12.5"; - }; pdf-core = { groups = ["default"]; platforms = []; @@ -257,10 +108,10 @@ platforms = []; source = { remotes = ["https://rubygems.org"]; - sha256 = "14cxj3ra9nnn334qpm2vsx9s0zk3095s8ih6cwcp47h3hv03c73y"; + sha256 = "0zgv9pp9cqd1cf8bwk7pb5lkm81gn7znnan0a7s42wd0qavs4nnz"; type = "gem"; }; - version = "2.5.0"; + version = "2.6.0"; }; polyglot = { groups = ["default"]; @@ -347,16 +198,6 @@ }; version = "2.2.0"; }; - racc = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "0la56m0z26j3mfn1a9lf2l03qx1xifanndf9p3vx1azf6sqy7v9d"; - type = "gem"; - }; - version = "1.6.0"; - }; rexml = { groups = ["default"]; platforms = []; @@ -377,17 +218,6 @@ }; version = "3.26.1"; }; - ruby-enum = { - dependencies = ["i18n"]; - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "1pys90hxylhyg969iw9lz3qai5lblf8xwbdg1g5aj52731a9k83p"; - type = "gem"; - }; - version = "0.9.0"; - }; ruby-rc4 = { groups = ["default"]; platforms = []; @@ -398,16 +228,6 @@ }; version = "0.1.5"; }; - rubyzip = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "0grps9197qyxakbpw02pda59v45lfgbgiyw48i0mq9f2bn9y6mrz"; - type = "gem"; - }; - version = "2.3.2"; - }; safe_yaml = { groups = ["default"]; platforms = []; @@ -418,16 +238,6 @@ }; version = "1.0.5"; }; - thread_safe = { - groups = ["default"]; - platforms = []; - source = { - remotes = ["https://rubygems.org"]; - sha256 = "0nmhcgq6cgz44srylra07bmaw99f5271l0dpsvl5f75m44l0gmwy"; - type = "gem"; - }; - version = "0.3.6"; - }; treetop = { dependencies = ["polyglot"]; groups = ["default"]; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 126524d7e027..1f6afdae0ab7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3771,10 +3771,7 @@ with pkgs; enableExtraPlugins = true; }); - asciidoctor = callPackage ../tools/typesetting/asciidoctor { - # epubcheck pulls in Java, which is problematic on some platforms - epubcheck = null; - }; + asciidoctor = callPackage ../tools/typesetting/asciidoctor { }; asciidoctor-with-extensions = callPackage ../tools/typesetting/asciidoctor-with-extensions { };