website/shell.nix

57 lines
971 B
Nix
Raw Permalink 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
2023-10-28 09:48:20 +00:00
gems = bundlerEnv {
name = "foodogsquared-blog-gems";
ruby = ruby_3_1;
2023-10-28 09:48:20 +00:00
gemdir = ./.;
};
asciidoctorWrappedWithCustomOptions = writeShellScriptBin "asciidoctor" ''
2023-11-03 08:04:27 +00:00
${lib.getBin gems}/bin/asciidoctor -T ${./templates} $@
'';
treesitterWithPlugins = (tree-sitter.withPlugins (_: tree-sitter.allGrammars));
in
2020-11-07 17:39:05 +00:00
mkShell {
2022-03-01 10:00:18 +00:00
packages = [
2024-10-04 13:13:02 +00:00
# To build my website.
2023-11-03 08:04:27 +00:00
asciidoctorWrappedWithCustomOptions
2023-11-10 10:15:35 +00:00
bundix
2023-10-28 09:48:20 +00:00
gems
gems.wrappedRuby
2024-10-04 13:13:02 +00:00
netlify-cli
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
2024-10-04 13:13:02 +00:00
inkscape
2020-11-07 17:39:05 +00:00
openring
tree-sitter
treesitterWithPlugins
2024-10-04 13:13:02 +00:00
# To build my resume.
typst
libffi
libxslt
# Formatters...
nixpkgs-fmt # ...for Nix.
nodePackages.prettier # ...for the web files.
2020-11-07 17:39:05 +00:00
];
shellHook = ''
go version
hugo version
2023-11-03 08:04:27 +00:00
which asciidoctor
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
'';
}