summaryrefslogtreecommitdiff
path: root/shell.nix
blob: 61095bb28a5feab21c77eba5f469bda51d5b9207 (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
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.nixfmt-rfc-style,
}:
pkgs.mkShellNoCC {
  packages = [
    pkgs.zola

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