forked from fedimint/fedimint.org
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
26 lines (24 loc) · 713 Bytes
/
flake.nix
File metadata and controls
26 lines (24 loc) · 713 Bytes
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
{
description = "Dev shell for Docusaurus site";
inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
flake-utils.url = "github:numtide/flake-utils";
};
outputs = { self, nixpkgs, flake-utils }:
flake-utils.lib.eachDefaultSystem (system:
let
pkgs = import nixpkgs { inherit system; };
in {
devShells.default = pkgs.mkShell {
buildInputs = [
pkgs.nodejs_20 # LTS as of early 2024
pkgs.yarn
];
shellHook = ''
echo "\033[1;32mDocusaurus dev shell loaded!\033[0m"
echo "Run 'yarn install' and 'yarn start' to build and serve the site."
'';
};
}
);
}