summaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
Diffstat (limited to 'shell.nix')
-rw-r--r--shell.nix25
1 files changed, 25 insertions, 0 deletions
diff --git a/shell.nix b/shell.nix
new file mode 100644
index 0000000..ecbb896
--- /dev/null
+++ b/shell.nix
@@ -0,0 +1,25 @@
+let
+ lock = builtins.fromJSON (builtins.readFile ./flake.lock);
+ fetchTree = import ./nix/fetchTree.nix;
+ flakeSources = builtins.mapAttrs (_: node: fetchTree node.locked) lock.nodes;
+in
+ {
+ nixpkgs ?
+ import sources.nixpkgs {
+ inherit system;
+ config = {};
+ overlays = [];
+ },
+ system ? builtins.currentSystem,
+ sources ? flakeSources,
+ formatter ? nixpkgs.alejandra,
+ }:
+ nixpkgs.mkShellNoCC {
+ packages = [
+ formatter
+ nixpkgs.biome
+ nixpkgs.nodejs-slim
+ # use package manager from package.json
+ nixpkgs.corepack
+ ];
+ }