haskell-generic-builder: use cpphs pre-processor by default on Darwin

Allegedly, the cpp implementation of Clang is weird and causes errors.
This commit is contained in:
Peter Simons
2015-01-13 22:15:29 +01:00
parent 67312f83ad
commit 007628fd49
2 changed files with 17 additions and 2 deletions

View File

@@ -25,6 +25,17 @@ let
hyperlinkSource = false; # Avoid depending on hscolour for this build.
postFixup = "rm -rf $out/lib $out/share $out/nix-support";
});
cpphs = overrideCabal (self.cpphs.overrideScope (self: super: {
mkDerivation = drv: super.mkDerivation (drv // {
enableSharedExecutables = false;
enableSharedLibraries = false;
noHaddock = true;
useCpphs = false;
});
})) (drv: {
isLibrary = false;
postFixup = "rm -rf $out/lib $out/share $out/nix-support";
});
};
overrideCabal = drv: f: drv.override (args: args // {