2022-03-01 10:00:18 +00:00
|
|
|
{ pkgs ? import <nixpkgs> { } }:
|
2020-11-07 17:39:05 +00:00
|
|
|
|
|
|
|
with pkgs;
|
|
|
|
|
2023-02-25 04:11:54 +00:00
|
|
|
let
|
|
|
|
localGem = ruby-nix {
|
|
|
|
name = "asciidoctor-foodogsquared-extensions";
|
|
|
|
ruby = ruby_3_1;
|
|
|
|
gemset = ./gemset.nix;
|
|
|
|
};
|
2023-04-03 15:33:49 +00:00
|
|
|
|
|
|
|
asciidoctorWrappedWithCustomOptions = writeShellScriptBin "asciidoctor" ''
|
|
|
|
${lib.getBin localGem.env}/bin/asciidoctor -T ./gems/templates $@
|
|
|
|
'';
|
2023-02-25 04:11:54 +00:00
|
|
|
in
|
2020-11-07 17:39:05 +00:00
|
|
|
mkShell {
|
2023-02-25 04:11:54 +00:00
|
|
|
buildInputs = [
|
|
|
|
localGem.env
|
|
|
|
localGem.ruby
|
|
|
|
];
|
|
|
|
|
2022-03-01 10:00:18 +00:00
|
|
|
packages = [
|
2023-04-03 15:33:49 +00:00
|
|
|
asciidoctorWrappedWithCustomOptions
|
|
|
|
|
2020-11-07 17:39:05 +00:00
|
|
|
git
|
|
|
|
go
|
|
|
|
hugo
|
|
|
|
jq
|
|
|
|
openring
|
2022-03-01 10:00:18 +00:00
|
|
|
gnumake
|
2023-02-25 04:11:54 +00:00
|
|
|
tree-sitter
|
2023-03-24 05:29:44 +00:00
|
|
|
(tree-sitter.withPlugins (_: tree-sitter.allGrammars))
|
2023-02-25 04:11:54 +00:00
|
|
|
|
|
|
|
# Formatters...
|
|
|
|
rufo # ...for Ruby.
|
|
|
|
nixpkgs-fmt # ...for Nix.
|
|
|
|
nodePackages.prettier # ...for the web files.
|
2023-02-26 04:33:37 +00:00
|
|
|
|
|
|
|
# Language servers...
|
|
|
|
rnix-lsp # ...for Nix.
|
2023-03-23 06:32:35 +00:00
|
|
|
|
|
|
|
libxslt
|
2020-11-07 17:39:05 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
shellHook = ''
|
|
|
|
go version
|
|
|
|
hugo version
|
2022-03-01 10:00:18 +00:00
|
|
|
asciidoctor --version
|
2022-11-22 15:18:42 +00:00
|
|
|
|
|
|
|
chmod u+x --recursive ./bin
|
2020-11-07 17:39:05 +00:00
|
|
|
'';
|
|
|
|
}
|