mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 21:10:08 +00:00
haskell.lib: Add {en,dis}ableExecutableProfiling transformer
We already have {en,dis}ableLibraryProfiling and the builder already
accepts the executable profiling attribute; let's make it easy to use.
This commit is contained in:
@@ -162,6 +162,9 @@ rec {
|
||||
enableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = true; });
|
||||
disableLibraryProfiling = drv: overrideCabal drv (drv: { enableLibraryProfiling = false; });
|
||||
|
||||
enableExecutableProfiling = drv: overrideCabal drv (drv: { enableExecutableProfiling = true; });
|
||||
disableExecutableProfiling = drv: overrideCabal drv (drv: { enableExecutableProfiling = false; });
|
||||
|
||||
enableSharedExecutables = drv: overrideCabal drv (drv: { enableSharedExecutables = true; });
|
||||
disableSharedExecutables = drv: overrideCabal drv (drv: { enableSharedExecutables = false; });
|
||||
|
||||
|
||||
Reference in New Issue
Block a user