From 81258b1dc103f9c64960d9acebb05249d5f77b2b Mon Sep 17 00:00:00 2001 From: Drazen Popovic Date: Wed, 13 Dec 2023 16:35:47 +0100 Subject: [PATCH] Radical debugging --- nix/default.nix | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/nix/default.nix b/nix/default.nix index 8eaf5fddba..cebbead892 100644 --- a/nix/default.nix +++ b/nix/default.nix @@ -302,11 +302,12 @@ let ( { inherit src; - nativeBuildInputs = [ builtProject nodeModules ] ++ buildInputs; + nativeBuildInputs = [ builtProject nodeModules pkgs.strace ] ++ buildInputs; NODE_PATH = "${nodeModules}/lib/node_modules"; } // env ) '' + set -vox # Copy the purescript project files cp -r ${builtProject}/* . @@ -317,7 +318,7 @@ let ln -sfn ${nodeModules}/lib/node_modules node_modules # Call the main module and execute the entry point function - ${nodejs}/bin/node --enable-source-maps -e 'import("./output/${testMain}/index.js").then(m => m.${psEntryPoint}())' + strace -s 1024 ${nodejs}/bin/node --enable-source-maps -e 'import("./output/${testMain}/index.js").then(m => m.${psEntryPoint}())' # Create output file to tell Nix we succeeded touch $out