-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathflake.nix
More file actions
27 lines (23 loc) · 797 Bytes
/
Copy pathflake.nix
File metadata and controls
27 lines (23 loc) · 797 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
{
# Nix devshell for docsite — Node.js 22 + pnpm for local development
description = "docsite — Sequoia-powered documentation site";
inputs.nixpkgs.url = "github:NixOS/nixpkgs/nixos-25.11";
outputs = { self, nixpkgs }:
let
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
forAllSystems = nixpkgs.lib.genAttrs systems;
in {
devShells = forAllSystems (system:
let pkgs = nixpkgs.legacyPackages.${system}; in
{
default = pkgs.mkShell {
packages = with pkgs; [ nodejs_22 pnpm ];
shellHook = ''
echo "docsite dev shell ready (Node.js 22 + pnpm)"
'';
};
}
);
formatter = forAllSystems (pkgs: pkgs.nixfmt-rfc-style);
};
}