Skip to content

Commit e30d52f

Browse files
committed
chore(dev): add Nix dev shell
1 parent 9a851c3 commit e30d52f

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

flake.nix

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
description = "DocSearch dev environment";
3+
4+
inputs = {
5+
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6+
};
7+
8+
outputs = { self, nixpkgs }:
9+
let
10+
systems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
11+
forAllSystems = nixpkgs.lib.genAttrs systems;
12+
in
13+
{
14+
devShells = forAllSystems (system:
15+
let
16+
pkgs = import nixpkgs { inherit system; };
17+
in
18+
{
19+
default = pkgs.mkShell {
20+
packages = [
21+
pkgs.nodejs_22
22+
pkgs.yarn-berry
23+
pkgs.nodePackages.typescript
24+
];
25+
};
26+
});
27+
};
28+
}

0 commit comments

Comments
 (0)