#!/usr/bin/env nu # Invoke agentOS's unchanged recipe and sysroot build with two compiler jobs. def main [] { $env.PATH = ($env.PATH | prepend /tmp/s3-git/tools) $env.LD_LIBRARY_PATH = $'((nix eval --raw nixpkgs#ncurses.outPath))/lib' $env.TMPDIR = '/tmp/s3-git' $env.MAKE_JOBS = '2' cd /tmp/s3-git/agentos ^bash toolchain/scripts/patch-wasi-libc.sh ^make -C toolchain/c build/git }