2024: init
This commit is contained in:
24
2024/template/default.nix
Normal file
24
2024/template/default.nix
Normal file
@@ -0,0 +1,24 @@
|
||||
{ pkgs, lib }:
|
||||
|
||||
with lib;
|
||||
|
||||
let
|
||||
input = pipe (fileContents ./input.txt) [
|
||||
(splitString "\n")
|
||||
];
|
||||
|
||||
answer1 = lib.pipe input [
|
||||
(_: "TODO")
|
||||
];
|
||||
|
||||
answer2 = lib.pipe input [
|
||||
(_: "TODO")
|
||||
];
|
||||
in
|
||||
pkgs.writeText "answers" ''
|
||||
Task1:
|
||||
${answer1}
|
||||
|
||||
Task2:
|
||||
${answer2}
|
||||
''
|
||||
0
2024/template/input.nix
Normal file
0
2024/template/input.nix
Normal file
Reference in New Issue
Block a user