Path: blob/develop/haskell-overlays/profiling.nix
1 views
{ haskellLib
, enableLibraryProfiling
}:
with haskellLib;
let
preventMobileProfiling = self: (!self.ghc.stdenv.targetPlatform.isiOS) && enableLibraryProfiling;
in
self: super: {
# Override mkDerivation to inherit global settings
mkDerivation = expr: super.mkDerivation (expr // {
enableLibraryProfiling = preventMobileProfiling self;
});
}