456d358cd7
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.
18 lines
303 B
Nix
18 lines
303 B
Nix
{ 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}
|
|
'';
|
|
}
|