-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
34 lines (31 loc) · 945 Bytes
/
flake.nix
File metadata and controls
34 lines (31 loc) · 945 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
27
28
29
30
31
32
33
34
{
description = "Code Crispies - Interactive CSS/HTML/Tailwind learning platform";
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 = nixpkgs.legacyPackages.${system};
in {
devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [
nodejs_20
nodePackages.npm
gnumake
];
shellHook = ''
echo "Code Crispies Development Environment"
echo ""
echo "Commands:"
echo " make dev - Start dev server (port 1234)"
echo " make build - Production build"
echo " make test - Run tests"
echo " make format - Format code"
echo ""
'';
};
}
);
}