tvl-depot/run/default.nix
William Carroll 3afb56a5e5 Begin supporting run
I'd like to be able to just call `run file.py` and have a program DWIM. I'm
working on run as a step in this direction. Define a simple configuration that
maps file extensions to template strings where "$file" is replaced with the
argv[1].

It basically works but there are outstanding TODOs. See the README and source
code for more information.
2020-02-11 17:11:19 +00:00

16 lines
229 B
Nix

{
pkgs ? import <nixpkgs> {},
depot ? import <depot> {},
briefcase ? import <briefcase> {},
...
}:
depot.buildGo.program {
name = "run";
srcs = [
./main.go
];
deps = with briefcase.gopkgs; [
utils
];
}