mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
Use custom extensions from Rubygems
This commit is contained in:
parent
84aca09028
commit
38740bfd15
2
Gemfile
2
Gemfile
@ -4,7 +4,7 @@ source 'https://rubygems.org'
|
||||
gem 'asciidoctor'
|
||||
gem 'asciidoctor-bibtex'
|
||||
gem 'asciidoctor-diagram'
|
||||
gem 'asciidoctor-foodogsquared-extensions', path: './gems'
|
||||
gem 'asciidoctor-foodogsquared-extensions'
|
||||
gem 'concurrent-ruby'
|
||||
gem 'open-uri-cached'
|
||||
gem 'rouge'
|
||||
|
14
Gemfile.lock
14
Gemfile.lock
@ -1,10 +1,3 @@
|
||||
PATH
|
||||
remote: gems
|
||||
specs:
|
||||
asciidoctor-foodogsquared-extensions (1.0.0)
|
||||
asciidoctor (~> 2.0)
|
||||
rugged (~> 1.0)
|
||||
|
||||
GEM
|
||||
remote: https://rubygems.org/
|
||||
specs:
|
||||
@ -22,6 +15,9 @@ GEM
|
||||
rexml
|
||||
asciidoctor-diagram-ditaamini (1.0.3)
|
||||
asciidoctor-diagram-plantuml (1.2023.5)
|
||||
asciidoctor-foodogsquared-extensions (1.0.0)
|
||||
asciidoctor (~> 2.0)
|
||||
rugged (~> 1.0)
|
||||
ast (2.4.2)
|
||||
bibtex-ruby (5.1.6)
|
||||
latex-decode (~> 0.0)
|
||||
@ -85,7 +81,7 @@ DEPENDENCIES
|
||||
asciidoctor
|
||||
asciidoctor-bibtex
|
||||
asciidoctor-diagram
|
||||
asciidoctor-foodogsquared-extensions!
|
||||
asciidoctor-foodogsquared-extensions
|
||||
concurrent-ruby
|
||||
open-uri-cached
|
||||
rake
|
||||
@ -97,4 +93,4 @@ DEPENDENCIES
|
||||
tilt
|
||||
|
||||
BUNDLED WITH
|
||||
2.4.12
|
||||
2.3.26
|
||||
|
35
flake.lock
generated
35
flake.lock
generated
@ -34,43 +34,10 @@
|
||||
"type": "github"
|
||||
}
|
||||
},
|
||||
"nixpkgs_2": {
|
||||
"locked": {
|
||||
"lastModified": 1678875422,
|
||||
"narHash": "sha256-T3o6NcQPwXjxJMn2shz86Chch4ljXgZn746c2caGxd8=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "126f49a01de5b7e35a43fd43f891ecf6d3a51459",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"id": "nixpkgs",
|
||||
"type": "indirect"
|
||||
}
|
||||
},
|
||||
"root": {
|
||||
"inputs": {
|
||||
"flake-utils": "flake-utils",
|
||||
"nixpkgs": "nixpkgs",
|
||||
"ruby-nix": "ruby-nix"
|
||||
}
|
||||
},
|
||||
"ruby-nix": {
|
||||
"inputs": {
|
||||
"nixpkgs": "nixpkgs_2"
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1681695382,
|
||||
"narHash": "sha256-RBZnSdx3dnUg3o+FiQVKKeKZN6pntYb19mXnnA5b/i8=",
|
||||
"owner": "sagittaros",
|
||||
"repo": "ruby-nix",
|
||||
"rev": "b1edcbec13c9f15915a900b1fb87d9c3ef1e882b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
"owner": "sagittaros",
|
||||
"repo": "ruby-nix",
|
||||
"type": "github"
|
||||
"nixpkgs": "nixpkgs"
|
||||
}
|
||||
},
|
||||
"systems": {
|
||||
|
10
flake.nix
10
flake.nix
@ -4,7 +4,6 @@
|
||||
inputs = {
|
||||
nixpkgs.url = "github:NixOS/nixpkgs/nixpkgs-unstable";
|
||||
flake-utils.url = "github:numtide/flake-utils";
|
||||
ruby-nix.url = "github:sagittaros/ruby-nix";
|
||||
};
|
||||
|
||||
outputs = inputs@{ self, nixpkgs, ... }:
|
||||
@ -14,14 +13,7 @@
|
||||
in
|
||||
inputs.flake-utils.lib.eachSystem systems (system:
|
||||
let
|
||||
pkgs = import nixpkgs {
|
||||
inherit system;
|
||||
overlays = overlays ++ [
|
||||
(final: prev: {
|
||||
ruby-nix = inputs.ruby-nix.lib prev;
|
||||
})
|
||||
];
|
||||
};
|
||||
pkgs = nixpkgs.legacyPackages."${system}";
|
||||
in
|
||||
{
|
||||
devShells.default = import ./shell.nix { inherit pkgs; };
|
||||
|
@ -66,10 +66,10 @@
|
||||
groups = ["default"];
|
||||
platforms = [];
|
||||
source = {
|
||||
path = "gems";
|
||||
type = "path";
|
||||
remotes = ["https://rubygems.org"];
|
||||
sha256 = "0jkc89m22fwjc4qn481rxyv5yif2yqqhw3ib4d6qkqcv2a21448g";
|
||||
type = "gem";
|
||||
};
|
||||
targets = [];
|
||||
version = "1.0.0";
|
||||
};
|
||||
ast = {
|
||||
|
15
shell.nix
15
shell.nix
@ -3,25 +3,22 @@
|
||||
with pkgs;
|
||||
|
||||
let
|
||||
localGem = ruby-nix {
|
||||
name = "asciidoctor-foodogsquared-extensions";
|
||||
gems = bundlerEnv {
|
||||
name = "foodogsquared-blog-gems";
|
||||
ruby = ruby_3_1;
|
||||
gemset = ./gemset.nix;
|
||||
gemdir = ./.;
|
||||
};
|
||||
|
||||
asciidoctorWrappedWithCustomOptions = writeShellScriptBin "asciidoctor" ''
|
||||
${lib.getBin localGem.env}/bin/asciidoctor -T ./gems/templates $@
|
||||
${lib.getBin gems}/bin/asciidoctor -T ./gems/templates $@
|
||||
'';
|
||||
|
||||
treesitterWithPlugins = (tree-sitter.withPlugins (_: tree-sitter.allGrammars));
|
||||
in
|
||||
mkShell {
|
||||
buildInputs = [
|
||||
localGem.env
|
||||
localGem.ruby
|
||||
];
|
||||
|
||||
packages = [
|
||||
gems
|
||||
gems.wrappedRuby
|
||||
asciidoctorWrappedWithCustomOptions
|
||||
|
||||
git
|
||||
|
Loading…
Reference in New Issue
Block a user