-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshell.nix
More file actions
35 lines (34 loc) · 1.01 KB
/
shell.nix
File metadata and controls
35 lines (34 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Function arguments that will be provided by callPackage
{
mkShell, # Function to create a shell environment
hugo, # The Hugo package itself
git, # Hugo modules, themes, and version control
go, # Hugo modules
dart-sass, # transpile Sass to CSS
}:
# Create a development shell
mkShell {
# Packages that will be available in the development environment
packages = [
hugo
git
go
dart-sass
];
# Script that runs when entering the shell
shellHook = ''
echo "Hugo development environment loaded!"
echo "Hugo version: $(hugo version)"
echo ""
echo "Installed tools:"
echo "- Hugo (static site generator)"
echo "- Git (required for Hugo modules and themes)"
echo "- Go (required for Hugo modules)"
echo "- Dart Sass (required for Sass/SCSS processing)"
echo ""
echo "Common commands:"
echo " hugo new site [path] # Create a new site"
echo " hugo serve # Start development server"
echo " hugo # Build site"
'';
}