Skip to content

Commit

Permalink
Expose the plan.json file as plan-nix.json (#935)
Browse files Browse the repository at this point in the history
Make the plan.json file available in case we need to debug plan-to-nix
  • Loading branch information
hamishmack committed Nov 23, 2020
1 parent c6f83ce commit e4be77e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/call-cabal-project-to-nix.nix
Expand Up @@ -383,6 +383,7 @@ let
LANG = "en_US.UTF-8";
meta.platforms = pkgs.lib.platforms.all;
preferLocalBuild = false;
outputs = ["out" "json"];
} ''
tmp=$(mktemp -d)
cd $tmp
Expand Down Expand Up @@ -471,6 +472,9 @@ let
# proper relative paths.
(cd $out${subDir'} && plan-to-nix --full --plan-json $tmp${subDir'}/dist-newstyle/cache/plan.json -o .)
# Make the plan.json file available in case we need to debug plan-to-nix
cp $tmp${subDir'}/dist-newstyle/cache/plan.json $json
# Remove the non nix files ".project" ".cabal" "package.yaml" files
# as they should not be in the output hash (they may change slightly
# without affecting the nix).
Expand Down

0 comments on commit e4be77e

Please sign in to comment.