diff options
author | William Carroll <wpcarro@gmail.com> | 2020-02-11T17·04+0000 |
---|---|---|
committer | William Carroll <wpcarro@gmail.com> | 2020-02-11T17·11+0000 |
commit | 3afb56a5e5274611c3c5d0f7e2f4a8965575ff40 (patch) | |
tree | 34f883eb1f1342ddb6c93d5f0ab6d4e59739d8b9 /run/default.nix | |
parent | a50153c1419dd7dd1a7e3e79a016fa84e42accbb (diff) |
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.
Diffstat (limited to 'run/default.nix')
-rw-r--r-- | run/default.nix | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/run/default.nix b/run/default.nix new file mode 100644 index 000000000000..113491536ee5 --- /dev/null +++ b/run/default.nix @@ -0,0 +1,16 @@ +{ + pkgs ? import <nixpkgs> {}, + depot ? import <depot> {}, + briefcase ? import <briefcase> {}, + ... +}: + +depot.buildGo.program { + name = "run"; + srcs = [ + ./main.go + ]; + deps = with briefcase.gopkgs; [ + utils + ]; +} |