Skip to content

Commit 17f1f63

Browse files
authored
Delete noisy trace message (#526)
This fires at least 3 times for every haskell.nix project (bootstrap happy, alex, and hscolor), and then again for every `cabalProject` and `hackage-package`. Moreover, it isn't actually informative: it just says `ghc` and `ghc-pkg` for the executables being used.
1 parent eb15db0 commit 17f1f63

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/call-cabal-project-to-nix.nix

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ let
173173
else null;
174174
} // pkgs.lib.optionalAttrs (checkMaterialization != null) {
175175
inherit checkMaterialization;
176-
}) (builtins.trace "[${if name == null then "plan-to-nix-pkgs" else name + "-plan-to-nix-pkgs"}] cabal new-configure --with-ghc=${ghc.targetPrefix}ghc --with-ghc-pkg=${ghc.targetPrefix}ghc-pkg" (runCommand (if name == null then "plan-to-nix-pkgs" else name + "-plan-to-nix-pkgs") {
176+
}) (runCommand (if name == null then "plan-to-nix-pkgs" else name + "-plan-to-nix-pkgs") {
177177
nativeBuildInputs = [ nix-tools ghc hpack cabal-install pkgs.rsync pkgs.git ];
178178
# Needed or stack-to-nix will die on unicode inputs
179179
LOCALE_ARCHIVE = pkgs.lib.optionalString (pkgs.stdenv.hostPlatform.libc == "glibc") "${pkgs.glibcLocales}/lib/locale/locale-archive";
@@ -247,5 +247,5 @@ let
247247
248248
# move pkgs.nix to default.nix ensure we can just nix `import` the result.
249249
mv $out/pkgs.nix $out/default.nix
250-
''));
250+
'');
251251
in { projectNix = plan-nix; inherit src; inherit (fixedProject) sourceRepos; }

0 commit comments

Comments
 (0)