1{
2 inputs = {
3 nixpkgs.url = "github:nixos/nixpkgs?ref=nixos-unstable";
4 };
5
6 outputs = {nixpkgs, ...}: let
7 forSystems = fn:
8 nixpkgs.lib.genAttrs [
9 "aarch64-linux"
10 "aarch64-darwin"
11 "x86_64-darwin"
12 "x86_64-linux"
13 ] (system: fn nixpkgs.legacyPackages.${system});
14 defaultForSystems = fn: forSystems (pkgs: {default = fn pkgs;});
15 in {
16 devShells = defaultForSystems (pkgs:
17 with pkgs;
18 mkShell {
19 nativeBuildInputs = [elixir erlang nodejs pnpm tailwindcss_4 watchman] ++ (lib.optional stdenv.isLinux [inotify-tools]);
20
21 shellHook = ''
22 export TAILWINDCSS_PATH="${lib.getExe tailwindcss_4}"
23 '';
24 });
25 };
26}