-
-
Notifications
You must be signed in to change notification settings - Fork 33
/
shell.nix
37 lines (37 loc) · 1.08 KB
/
shell.nix
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
36
37
let
nixpkgs = builtins.fetchTarball "https://github.com/NixOS/nixpkgs/archive/f9d39fb9aff0efee4a3d5f4a6d7c17701d38a1d8.tar.gz";
pkgs = import nixpkgs { config = { }; overlays = [ ]; };
in
with pkgs;
mkShell {
buildInputs = [
hugo
vscode
python312Packages.icalendar
python312Packages.requests
];
# DIRENV_LOG_FORMAT to reduce direnv verbosity
# See https://github.com/direnv/direnv/issues/68#issuecomment-162639262
shellHook = ''
export DIRENV_LOG_FORMAT=
echo "-----------------------"
echo "🌈 Your Hugo Dev Environment is ready."
echo "It provides hugo and vscode for use with the QGIS Website Project"
echo ""
echo "🪛 VSCode:"
echo "--------------------------------"
echo "Start vscode like this:"
echo ""
echo "./vscode.sh"
echo "-----------------------"
echo "On running, it will install hugo related extensions."
echo ""
echo "🪛 Hugo:"
echo "--------------------------------"
echo "Start hugo like this:"
echo ""
echo "hugo server"
'';
postShellHook = ''
'';
}