[Nix-dev] Haskellng - enable profiling

Peter Simons simons at cryp.to
Tue Mar 10 10:45:00 CET 2015


Andreas Herrmann writes:

>  |  if profiling
>  |  then mypackage.overrideScope (self: super: {
>  |         inherit stdenv;  # Why this line is required is beyond me. =/
>  |         mkDerivation = drv: super.mkDerivation (drv // { enableLibraryProfiling = true; });
>  |       })
>  |  else mypackage

Inheriting 'stdenv' is required because of
https://github.com/NixOS/nixpkgs/issues/6192.

Best regards,
Peter



More information about the nix-dev mailing list