day 21: this is so ugly

Signed-off-by: Amneesh Singh <natto@weirdnatto.in>
This commit is contained in:
2024-12-21 21:33:21 +05:30
parent 4d1bd226ac
commit 279eba3468
3 changed files with 94 additions and 0 deletions

View File

@@ -27,6 +27,15 @@
};
packages.default = self'.packages.aoc2024;
apps =
let
name = n: "day${(if n < 10 then "0" else "" ) + toString n}";
in
with pkgs.lib; genAttrs (map name (range 1 21))
(n: {
type = "app";
program = "${self'.packages.aoc2024}/bin/${n}";
});
};
};
}