diff options
| author | seth <[email protected]> | 2024-04-17 03:50:34 -0400 |
|---|---|---|
| committer | seth <[email protected]> | 2024-04-17 03:50:34 -0400 |
| commit | dfdb0ceed87923086f258f5291276c9db0b7ecd0 (patch) | |
| tree | cf292e6da1789f71b07e85c8f2936bd60d210fce /shell.nix | |
| parent | cbcc5c09585229ec31cf76f2ab666b2d34129914 (diff) | |
nix: remove all inputs
Diffstat (limited to 'shell.nix')
| -rw-r--r-- | shell.nix | 25 |
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 + ]; + } |
