Skip to content

Commit

Permalink
Radical debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
bladyjoker committed Dec 13, 2023
1 parent 1bacd46 commit 81258b1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions nix/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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}/* .
Expand All @@ -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
Expand Down

0 comments on commit 81258b1

Please sign in to comment.