TLDR:
-
$out/bin/main
works when innix develop
and in nix shell - it works when using
builtins.derivation
- doesn’t with
stdenv.mkDerivation
Deno and bash are the only build inputs.
dontPatchShebangs = 1;
(although it shouldn’t matter).
installPhase is just deno --compile
and putting the output in the bin:
mkdir -p "$out/bin"
export HOME="$out/bin/home" <- mostly for debugging
"${deno}/bin/deno" compile --allow-all --output "$out/bin/main" "$src/build_helper/main.bundle.js"
# only for debugging
"$out/bin/nvs" --help > "$out/bin/help.txt"
Whats the best way for me to debug this?