@@ -383,6 +383,7 @@ let
383 LANG = "en_US.UTF-8";
383 LANG = "en_US.UTF-8";
384 meta.platforms = pkgs.lib.platforms.all;
384 meta.platforms = pkgs.lib.platforms.all;
385 preferLocalBuild = false;
385 preferLocalBuild = false;
386+ outputs = ["out" "json"];
387 tmp=$(mktemp -d)
388 tmp=$(mktemp -d)
@@ -471,6 +472,9 @@ let
471 # proper relative paths.
472 # proper relative paths.
472 (cd $out${subDir'} && plan-to-nix --full --plan-json $tmp${subDir'}/dist-newstyle/cache/plan.json -o .)
473 (cd $out${subDir'} && plan-to-nix --full --plan-json $tmp${subDir'}/dist-newstyle/cache/plan.json -o .)
475+ # Make the plan.json file available in case we need to debug plan-to-nix
476+ cp $tmp${subDir'}/dist-newstyle/cache/plan.json $json
474 # Remove the non nix files ".project" ".cabal" "package.yaml" files
478 # Remove the non nix files ".project" ".cabal" "package.yaml" files
475 # as they should not be in the output hash (they may change slightly
479 # as they should not be in the output hash (they may change slightly
476 # without affecting the nix).
480 # without affecting the nix).