From 3fd583d27c090a62717bf0887499830138c1dcbb Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sat, 27 Jun 2020 06:11:47 +0200 Subject: feat(nix/writeExecline): add writeExecline MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: tazjin --- third_party/default.nix | 2 ++ 1 file changed, 2 insertions(+) (limited to 'third_party') 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 -- cgit 1.4.1