diff options
author | Profpatsch <mail@profpatsch.de> | 2020-06-27T04·11+0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2020-06-27T17·52+0000 |
commit | 3fd583d27c090a62717bf0887499830138c1dcbb (patch) | |
tree | 588731c042d56138d849d1ad91ba4b5a68fecb6e /third_party | |
parent | 22b8a49b87d2b86329add48e9af69ffd29ff6118 (diff) |
feat(nix/writeExecline): add writeExecline r/1100
This is a writer, similar to `pkgs.writeBashScript` or `pkgs.writers.writePython3`. The difference is that we can correctly write all execline scripts by using nix lists of lists, so the user doesn’t have to care about escaping arguments (like they have to in bash scripts with `lib.escapeShellArg` for example). Change-Id: I2f2874cf61170ddca07b89b692f762725f4a75dc Reviewed-on: https://cl.tvl.fyi/c/depot/+/625 Reviewed-by: Kane York <rikingcoding@gmail.com> Reviewed-by: tazjin <mail@tazj.in>
Diffstat (limited to 'third_party')
-rw-r--r-- | third_party/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/third_party/default.nix b/third_party/default.nix index 4c29ba4803..c13b8f1b31 100644 --- a/third_party/default.nix +++ b/third_party/default.nix @@ -59,6 +59,7 @@ let cudatoolkit darwin dockerTools + execline fetchFromGitHub fetchgit fetchurl @@ -130,6 +131,7 @@ let thttpd tree which + writeScript writeShellScript writeShellScriptBin writeText |