1
Fork 0
mirror of https://github.com/RGBCube/AdventOfCode synced 2026-01-13 08:41:05 +00:00
AdventOfCode/flake.nix
2023-12-01 23:40:50 +03:00

24 lines
520 B
Nix

{
description = "RGBCube's Advent of Code Solutions.";
inputs = {
nixpkgs = {
url = "github:NixOS/nixpkgs/nixos-unstable";
};
};
outputs = { nixpkgs, ... }: let
lib = nixpkgs.lib;
pathToResult = path: (import ./${path}.nix {
inherit lib;
input = builtins.concatStringsSep "\n"
(builtins.filter (line: line != "")
(lib.splitString "\n" (builtins.readFile ./${path}.in)));
}).result;
in lib.genAttrs [
"2023/1-1"
"2023/1-2"
] pathToResult;
}