website/shell.nix

59 lines
1017 B
Nix
Raw Normal View History

2022-03-01 10:00:18 +00:00
{ pkgs ? import <nixpkgs> { } }:
2020-11-07 17:39:05 +00:00
with pkgs;
let
localGem = ruby-nix {
name = "asciidoctor-foodogsquared-extensions";
ruby = ruby_3_1;
gemset = ./gemset.nix;
};
asciidoctorWrappedWithCustomOptions = writeShellScriptBin "asciidoctor" ''
${lib.getBin localGem.env}/bin/asciidoctor -T ./gems/templates $@
'';
treesitterWithPlugins = (tree-sitter.withPlugins (_: tree-sitter.allGrammars));
in
2020-11-07 17:39:05 +00:00
mkShell {
buildInputs = [
localGem.env
localGem.ruby
];
2022-03-01 10:00:18 +00:00
packages = [
asciidoctorWrappedWithCustomOptions
2020-11-07 17:39:05 +00:00
git
2023-04-09 05:42:53 +00:00
libgit2
2020-11-07 17:39:05 +00:00
go
hugo
gnuplot
imagemagick
2020-11-07 17:39:05 +00:00
openring
tree-sitter
treesitterWithPlugins
netlify-cli # The deploy tool for this website.
libffi
libxslt
# Formatters...
nixpkgs-fmt # ...for Nix.
nodePackages.prettier # ...for the web files.
2023-02-26 04:33:37 +00:00
# Language servers...
rnix-lsp # ...for Nix.
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
'';
}