tvl-depot/tools/run
William Carroll 0c71fc9d1d Drop support for dir-locals.nix, <nixpkgs>, etc.
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
2020-08-20 11:26:32 +01:00
..
.envrc Drop support for dir-locals.nix, <nixpkgs>, etc. 2020-08-20 11:26:32 +01:00
default.nix Remove default values for Nix expression parameters 2020-03-01 22:32:24 +00:00
main.go Tidy up structure of briefcase 2020-02-12 16:58:29 +00:00
README.md Tidy up structure of briefcase 2020-02-12 16:58:29 +00:00
shell.nix Drop support for dir-locals.nix, <nixpkgs>, etc. 2020-08-20 11:26:32 +01:00

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