blob: ecbb8962d63eef5919d6b78bb08067911b4930f8 (
plain)
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
|
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
];
}
|