tidy up flake.nix
This commit is contained in:
parent
ad5b412c3a
commit
2db8edb087
5 changed files with 33 additions and 27 deletions
|
@ -114,9 +114,6 @@ in {
|
|||
inherit data disk defrag defragged checksum fullDisk;
|
||||
|
||||
part1result = defragged |> checksum;
|
||||
|
||||
# defraggedFullDisk = defragFullDisk fullDisk;
|
||||
|
||||
# part1result = (defragFullDisk fullDisk).acc |> checksumFullDisk;
|
||||
part2result = "My solution is too slow for part 2";
|
||||
|
||||
}
|
||||
|
|
13
2024/09/solution.nix
Normal file
13
2024/09/solution.nix
Normal file
|
@ -0,0 +1,13 @@
|
|||
pkgs: input: let
|
||||
inherit (pkgs) lib;
|
||||
nix-solution = import ./bad.solution.nix pkgs input;
|
||||
input-file = pkgs.writeText "input.txt" input;
|
||||
bun-run = js-file: pkgs.runCommand "2024day9" {} ''
|
||||
${lib.getExe pkgs.bun} ${js-file} ${input-file} > $out
|
||||
'' |> builtins.readFile |> lib.trim;
|
||||
in nix-solution // {
|
||||
javascript = {
|
||||
part1result = bun-run ./solution.js;
|
||||
part2result = bun-run ./solution2.js;
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue