[Nix-dev] Haskellng - enable profiling

Andreas Herrmann andreash87 at gmx.ch
Tue Mar 10 11:24:58 CET 2015


Thanks for pointing me there.

On Tuesday 10 March 2015 10:45:00 Peter Simons wrote:
> 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
> 
> _______________________________________________
> nix-dev mailing list
> nix-dev at lists.science.uu.nl
> http://lists.science.uu.nl/mailman/listinfo/nix-dev


More information about the nix-dev mailing list