summaryrefslogtreecommitdiff
path: root/shell.nix
blob: 1ba11b560247ce0bc426d1f87769adfbfdbf9eb1 (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
26
27
let
  lock = builtins.fromJSON (builtins.readFile ./flake.lock);
  fetchTree = import ./nix/fetchTree.nix;
  flakeSources = builtins.mapAttrs (_: node: fetchTree node.locked) lock.nodes;
in
  {
    pkgs ?
      import sources.nixpkgs {
        inherit system;
        config = {};
        overlays = [];
      },
    system ? builtins.currentSystem,
    sources ? flakeSources,
    formatter ? pkgs.alejandra,
  }:
    pkgs.mkShellNoCC {
      packages = [
        pkgs.zola

        # linters + formatters
        formatter
        pkgs.actionlint
        pkgs.nodePackages.alex
        pkgs.nodePackages.prettier
      ];
    }