0c71fc9d1d
In the spirit of Marie Kondo, I'm tidying up! TL;DR: - Prefer .envrc `use_nix` and delete all dir-locals.nix files - Remove ~all references to <nixpkgs>, <unstable>, <depot> and prefer referencing each with briefcase.third_party.{pkgs,unstable,depot} - Delete nixBufferFromShell function since I was only using that in dir-locals.nix files |
||
---|---|---|
.. | ||
.envrc | ||
default.nix | ||
main.go | ||
README.md | ||
shell.nix |
run
Simplify the commands you call to run scripts on the command line.
> run path/to/file.py
> run path/to/file.ts
How?
Define a run.json configuration mapping commands to filename extensions like so:
{
".ts": "npx ts-node $file",
".py": "python3 $file"
}
Then call run path/to/some/file.ts
on the command line, and npx ts-node file.ts
will run.
Installation
Install run
using Nix.
> nix-env -iA briefcase.run