diff options
author | Profpatsch <mail@profpatsch.de> | 2020-06-29 00:59:17 +0200 |
---|---|---|
committer | Profpatsch <mail@profpatsch.de> | 2020-06-29 00:59:17 +0200 |
commit | ef2a9798cc4751ca069ee0e7f764812b8ed50da9 (patch) | |
tree | 196525c0df0c300c112beaef09dcef7f3eca5444 /pkgs/profpatsch/default.nix | |
parent | eb73fb94264d486ff1be0ea756aad3708f21b065 (diff) |
pkgs/profpatsch: export toNetstring from the toplevel
Diffstat (limited to 'pkgs/profpatsch/default.nix')
-rw-r--r-- | pkgs/profpatsch/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/profpatsch/default.nix b/pkgs/profpatsch/default.nix index f39831b2..a9bff57b 100644 --- a/pkgs/profpatsch/default.nix +++ b/pkgs/profpatsch/default.nix @@ -168,13 +168,16 @@ in rec { inherit (import ./execline/e.nix { inherit pkgs writeExecline getBins; }) e; + toNetstring = s: + "${toString (builtins.stringLength s)}:${s},"; + inherit getBins binify; inherit (import ./sandbox.nix {inherit pkgs writeExecline; }) sandbox runInEmptyEnv; symlink = pkgs.callPackage ./execline/symlink.nix { - inherit runExecline; + inherit runExecline toNetstring; }; importer = pkgs.callPackage ./execline/importer.nix { |