git.iko.soy/typeable/nixpkgs
on master help sign in
Disable all Haskell builds for Darwin on Hydra.

Hydra generates a GHC closure for Darwin that for no apparent reason contains an ancient, broken Haddock binary -- probably because of an impurity in the build system. That bug makes those GHC binaries unusable: <https://github.com/NixOS/nixpkgs/issues/2689>.

commit7a20d764827f12bdd783a63a14ff0b2b9fcfeb96 authorPeter Simons <simons@cryp.to> dateTue 21 Oct 2014, 23:30 (12 years ago) parent917c163
2 files changed+14−7
pkgs/build-support/cabal/default.nix+7 pkgs/development/compilers/ghc/7.8.3.nix+7−7
pkgs/build-support/cabal/default.nix+7
@@ -57,6 +57,13 @@ assert !enableStaticLibraries -> versionOlder "7.7" ghc.version;
5757 propagatedUserEnvPkgs = filter (y : ! (y == null)) x.propagatedUserEnvPkgs;
5858 doCheck = enableCheckPhase && x.doCheck;
5959 hyperlinkSource = enableHyperlinkSource && x.hyperlinkSource;
60+ # Disable Darwin builds: <https://github.com/NixOS/nixpkgs/issues/2689>.
61+ meta = let meta = x.meta;
62+ hydraPlatforms = meta.hydraPlatforms or meta.platforms or [];
63+ noElem = p: ps: !stdenv.lib.elem p ps;
64+ noDarwin = p: noElem p stdenv.lib.platforms.darwin;
65+ in
66+ meta // { hydraPlatforms = filter noDarwin hydraPlatforms; };
6067 };
6168
6269 defaults =
pkgs/development/compilers/ghc/7.8.3.nix+7−7
@@ -32,15 +32,15 @@ stdenv.mkDerivation rec {
3232 # that in turn causes GHCi to abort
3333 stripDebugFlags = [ "-S" "--keep-file-symbols" ];
3434
35− meta = {
35+ meta = with stdenv.lib; {
3636 homepage = "http://haskell.org/ghc";
3737 description = "The Glasgow Haskell Compiler";
38− maintainers = [
39− stdenv.lib.maintainers.marcweber
40− stdenv.lib.maintainers.andres
41− stdenv.lib.maintainers.simons
42− ];
43− inherit (ghc.meta) license platforms;
38+ maintainers = [ maintainers.marcweber maintainers.andres maintainers.simons ];
39+ inherit (ghc.meta) license;
40+ # Filter old "i686-darwin" platform which is unsupported these days.
41+ platforms = filter (x: elem x platforms.all) ghc.meta.platforms;
42+ # Disable Darwin builds: <https://github.com/NixOS/nixpkgs/issues/2689>.
43+ hydraPlatforms = filter (x: !elem x platforms.darwin) meta.platforms;
4444 };
4545
4646}