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
|
2023-10-28 09:48:20 +00:00
|
|
|
gems = bundlerEnv {
|
|
|
|
name = "foodogsquared-blog-gems";
|
2023-02-25 04:11:54 +00:00
|
|
|
ruby = ruby_3_1;
|
2023-10-28 09:48:20 +00:00
|
|
|
gemdir = ./.;
|
2023-02-25 04:11:54 +00:00
|
|
|
};
|
2023-04-03 15:33:49 +00:00
|
|
|
|
|
|
|
asciidoctorWrappedWithCustomOptions = writeShellScriptBin "asciidoctor" ''
|
2023-11-03 08:04:27 +00:00
|
|
|
${lib.getBin gems}/bin/asciidoctor -T ${./templates} $@
|
2023-04-03 15:33:49 +00:00
|
|
|
'';
|
2023-05-06 18:15:38 +00:00
|
|
|
|
|
|
|
treesitterWithPlugins = (tree-sitter.withPlugins (_: tree-sitter.allGrammars));
|
2023-02-25 04:11:54 +00:00
|
|
|
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
|
2023-05-06 18:15:38 +00:00
|
|
|
gnuplot
|
|
|
|
imagemagick
|
2024-10-04 13:13:02 +00:00
|
|
|
inkscape
|
2020-11-07 17:39:05 +00:00
|
|
|
openring
|
2023-02-25 04:11:54 +00:00
|
|
|
tree-sitter
|
2023-05-06 18:15:38 +00:00
|
|
|
treesitterWithPlugins
|
|
|
|
|
2024-10-04 13:13:02 +00:00
|
|
|
# To build my resume.
|
|
|
|
typst
|
2023-05-06 18:15:38 +00:00
|
|
|
|
|
|
|
libffi
|
|
|
|
libxslt
|
2023-02-25 04:11:54 +00:00
|
|
|
|
|
|
|
# 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
|
|
|
'';
|
|
|
|
}
|