Skip to content

Instantly share code, notes, and snippets.

@washort
Created October 23, 2018 19:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save washort/e23384f9ad3a324123c184e67aad51b2 to your computer and use it in GitHub Desktop.
Save washort/e23384f9ad3a324123c184e67aad51b2 to your computer and use it in GitHub Desktop.
# Doesn't use 'unittest' because of dependency on `makeProcess`.
import "lib/codec/utf8" =~ [=> UTF8 :DeepFrozen]
import "lib/streams" =~ [=> collectBytes :DeepFrozen]
exports (main)
def main(_argv, => makeProcess) as DeepFrozen:
def compile():
def pr := makeProcess(b`/nix/store/wm8va53fh5158ipi0ic9gir64hrvqv1z-coreutils-8.29/bin/ls`, [b`ls`, b`-lR`],
[].asMap(),
"stdout" => true)
return collectBytes(pr.stdout())
return when (def x := compile()) ->
traceln(x.size())
0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment