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:
parent
d480b6f08b
commit
456d358cd7
11 changed files with 773 additions and 0 deletions
18
advent-of-code/writePythonBin.nix
Normal file
18
advent-of-code/writePythonBin.nix
Normal 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}
|
||||
'';
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue