Upload my 2019 Advent of Code attempts

Well, unexpectedly (perhaps naively so), I only made it to Day 7. I created
these before I stumbled upon the idea of the mono-repository; otherwise, I like
to think I would have more granular commits introducing this work.
This commit is contained in:
William Carroll 2020-01-15 14:21:45 +00:00
parent d480b6f08b
commit 456d358cd7
11 changed files with 773 additions and 0 deletions

View file

@ -0,0 +1,18 @@
{ pkgs ? import <nixpkgs> {}, ... }:
{ name, deps, src }:
let
inherit (pkgs) pythonPackages writeTextFile;
inherit (builtins) toFile;
in writeTextFile {
inherit name;
executable = true;
destination = "/bin/${name}";
text = ''
#!/bin/sh
${pkgs.python3}/bin/python3 ${src}
'';
}