mirror of
https://github.com/RGBCube/AdventOfCode
synced 2025-07-27 20:17:43 +00:00
Add day 1 part 1
This commit is contained in:
parent
781a8c6669
commit
58850f81a6
4 changed files with 1067 additions and 0 deletions
23
flake.nix
Normal file
23
flake.nix
Normal file
|
@ -0,0 +1,23 @@
|
|||
{
|
||||
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)));
|
||||
};
|
||||
in lib.genAttrs [
|
||||
"2023/1-1"
|
||||
] pathToResult;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue