nixos-config/shells/hugo.nix

21 lines
611 B
Nix
Raw Normal View History

2021-12-16 09:16:31 +00:00
# My usual toolchain for developing Hugo projects.
2025-01-29 04:48:19 +00:00
{ mkShell, callPackage, hugo, asciidoctor, pandoc, git, go, nodejs_latest
, imagemagick }:
2021-12-16 09:16:31 +00:00
let
nodejsDevshell = callPackage ./nodejs.nix { };
goDevshell = callPackage ./go.nix { };
2025-01-29 04:48:19 +00:00
in mkShell {
2021-12-16 09:16:31 +00:00
packages = [
asciidoctor # Some sites use this.
pandoc # Also these.
2021-12-16 09:16:31 +00:00
hugo # The main tool.
go # I might use Go modules which requires the Golang runtime.
git # VCS of my choice.
nodejs_latest # The supported NodeJS version.
2023-09-27 02:50:58 +00:00
imagemagick # Everyman's image processing framework.
2021-12-16 09:16:31 +00:00
];
2025-01-29 04:48:19 +00:00
inputsFrom = [ nodejsDevshell goDevshell ];
2021-12-16 09:16:31 +00:00
}