From 3f79ddf06375c3b34569c8b9ce91a607bbd0f052 Mon Sep 17 00:00:00 2001 From: Profpatsch Date: Sun, 28 Jun 2020 15:14:04 +0200 Subject: pkgs/profpatsch/execline: add el_exec and el_substitute el_exec: wraps the various execve wrappers in skalib that are useful for writing execline-like utils. currently only `xpathexec0` is supported, which execs into the argv you give it or errors with the right error if file not found. el_substitute: execline argv substitution! Wraps the execline function, so it will behave exactly the same as the existing execline utils, like `importas`. --- pkgs/profpatsch/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'pkgs/profpatsch/default.nix') diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix index 993189ff..f39831b2 100644 --- a/pkgs/profpatsch/default.nix +++ b/pkgs/profpatsch/default.nix @@ -210,7 +210,9 @@ in rec { readDhallFileAsJson ; + rust-deps = (import ./rust-deps.nix { inherit (pkgs) buildRustCrate; }); inherit (import ./xdg-open { inherit pkgs getBins importDhall2 writeExecline dhall buildDhallPackage; }) + xdg-open Prelude ; @@ -220,9 +222,11 @@ in rec { netencode-rs-tests ; - inherit (import ./execline/el-semicolon.nix { inherit writeRustSimpleLib; }) + inherit (import ./execline/default.nix { inherit pkgs writeRustSimpleLib rust-deps; }) el-semicolon el-semicolon-tests + el-exec + el-substitute ; netencode = import ./netencode/netencode.nix; -- cgit 1.4.1