summaryrefslogtreecommitdiff
path: root/shell.nix
diff options
context:
space:
mode:
authorseth <[email protected]>2024-04-17 03:50:34 -0400
committerseth <[email protected]>2024-04-17 03:50:34 -0400
commitdfdb0ceed87923086f258f5291276c9db0b7ecd0 (patch)
treecf292e6da1789f71b07e85c8f2936bd60d210fce /shell.nix
parentcbcc5c09585229ec31cf76f2ab666b2d34129914 (diff)
nix: remove all inputs
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
+ ];
+ }