-
Notifications
You must be signed in to change notification settings - Fork 0
/
flake.nix
47 lines (39 loc) · 1.24 KB
/
flake.nix
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
{
description = "Advent of Code 2024 in standard nix.";
outputs =
{ self
, std
, ...
} @ inputs:
std.growOn
{
inherit inputs;
cellsFrom = ./cells;
cellBlocks = with std.blockTypes; [
(devshells "devshells")
(nixago "configs")
(pkgs "nixpkgs")
(namaka "checks")
(runnables "code")
(runnables "challenges")
];
}
{
devShells = std.harvest self [ "repository" "devshells" ];
packages = std.harvest self [ "code" "challenges" ];
# TODO: this gets to problems with `nix flake show`.
# checks = std.harvest self ["tests" "checks" "snapshots" "check"];
};
inputs = {
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
haumea.url = "github:nix-community/haumea";
std.url = "github:divnix/std";
std.inputs.nixpkgs.follows = "nixpkgs";
std.inputs.devshell.url = "github:numtide/devshell";
std.inputs.haumea.follows = "haumea";
std.inputs.nixago.url = "github:nix-community/nixago";
namaka.url = "github:nix-community/namaka";
namaka.inputs.nixpkgs.follows = "nixpkgs";
mdbook-paisano-preprocessor.url = "github:paisano-nix/mdbook-paisano-preprocessor";
};
}