Merge pull request #63689 from svalaskevicius/add-rouge-to-asciidoctor
asciidoctor: add rouge to dependencies
This commit is contained in:
commit
b8796d6f03
@ -5,3 +5,4 @@ gem 'asciidoctor-pdf'
|
|||||||
gem 'asciidoctor-mathematical'
|
gem 'asciidoctor-mathematical'
|
||||||
gem 'coderay'
|
gem 'coderay'
|
||||||
gem 'pygments.rb'
|
gem 'pygments.rb'
|
||||||
|
gem 'rouge'
|
||||||
|
@ -54,9 +54,10 @@ GEM
|
|||||||
prawn-templates (0.1.1)
|
prawn-templates (0.1.1)
|
||||||
pdf-reader (~> 2.0)
|
pdf-reader (~> 2.0)
|
||||||
prawn (~> 2.2)
|
prawn (~> 2.2)
|
||||||
public_suffix (3.1.0)
|
public_suffix (3.1.1)
|
||||||
pygments.rb (1.2.1)
|
pygments.rb (1.2.1)
|
||||||
multi_json (>= 1.0.0)
|
multi_json (>= 1.0.0)
|
||||||
|
rouge (3.5.1)
|
||||||
ruby-enum (0.7.2)
|
ruby-enum (0.7.2)
|
||||||
i18n
|
i18n
|
||||||
ruby-rc4 (0.1.5)
|
ruby-rc4 (0.1.5)
|
||||||
@ -76,6 +77,7 @@ DEPENDENCIES
|
|||||||
asciidoctor-pdf
|
asciidoctor-pdf
|
||||||
coderay
|
coderay
|
||||||
pygments.rb
|
pygments.rb
|
||||||
|
rouge
|
||||||
|
|
||||||
BUNDLED WITH
|
BUNDLED WITH
|
||||||
1.17.2
|
1.17.2
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, lib, bundlerApp, ruby
|
{ stdenv, lib, bundlerApp, ruby, bundix, mkShell
|
||||||
# Dependencies of the 'mathematical' package
|
# Dependencies of the 'mathematical' package
|
||||||
, cmake, bison, flex, glib, pkgconfig, cairo
|
, cmake, bison, flex, glib, pkgconfig, cairo
|
||||||
, pango, gdk_pixbuf, libxml2, python3, patchelf
|
, pango, gdk_pixbuf, libxml2, python3, patchelf
|
||||||
}:
|
}:
|
||||||
|
|
||||||
bundlerApp {
|
bundlerApp rec {
|
||||||
inherit ruby;
|
inherit ruby;
|
||||||
pname = "asciidoctor";
|
pname = "asciidoctor";
|
||||||
gemdir = ./.;
|
gemdir = ./.;
|
||||||
@ -43,6 +43,12 @@ bundlerApp {
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
passthru.updateShell = mkShell {
|
||||||
|
buildInputs = (gemConfig.mathematical {}).buildInputs ++ [
|
||||||
|
bundix
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A faster Asciidoc processor written in Ruby";
|
description = "A faster Asciidoc processor written in Ruby";
|
||||||
homepage = https://asciidoctor.org/;
|
homepage = https://asciidoctor.org/;
|
||||||
|
@ -237,10 +237,10 @@
|
|||||||
platforms = [];
|
platforms = [];
|
||||||
source = {
|
source = {
|
||||||
remotes = ["https://rubygems.org"];
|
remotes = ["https://rubygems.org"];
|
||||||
sha256 = "1c7c5xxkx91hwj4572hbnyvxmydb90q69wlpr2l0dxrmwx2p365l";
|
sha256 = "0g9ds2ffzljl6jjmkjffwxc1z6lh5nkqqmhhkxjk71q5ggv0rkpm";
|
||||||
type = "gem";
|
type = "gem";
|
||||||
};
|
};
|
||||||
version = "3.1.0";
|
version = "3.1.1";
|
||||||
};
|
};
|
||||||
"pygments.rb" = {
|
"pygments.rb" = {
|
||||||
dependencies = ["multi_json"];
|
dependencies = ["multi_json"];
|
||||||
@ -253,6 +253,16 @@
|
|||||||
};
|
};
|
||||||
version = "1.2.1";
|
version = "1.2.1";
|
||||||
};
|
};
|
||||||
|
rouge = {
|
||||||
|
groups = ["default"];
|
||||||
|
platforms = [];
|
||||||
|
source = {
|
||||||
|
remotes = ["https://rubygems.org"];
|
||||||
|
sha256 = "0yfhazlhjc4abgzhkgq8zqmdphvkh52211widkl4zhsbhqh8wg2q";
|
||||||
|
type = "gem";
|
||||||
|
};
|
||||||
|
version = "3.5.1";
|
||||||
|
};
|
||||||
ruby-enum = {
|
ruby-enum = {
|
||||||
dependencies = ["i18n"];
|
dependencies = ["i18n"];
|
||||||
groups = ["default"];
|
groups = ["default"];
|
||||||
|
6
pkgs/tools/typesetting/asciidoctor/update.sh
Executable file
6
pkgs/tools/typesetting/asciidoctor/update.sh
Executable file
@ -0,0 +1,6 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
rm gemset.nix Gemfile.lock
|
||||||
|
nix-shell ../../../.. -A asciidoctor.updateShell --run '
|
||||||
|
bundix -m --bundle-pack-path $TMPDIR/asciidoctor-ruby-bundle
|
||||||
|
'
|
||||||
|
rm -r .bundle
|
Loading…
x
Reference in New Issue
Block a user