2015-01-07 20:31:32 +01:00
|
|
|
|
{ pkgs }:
|
|
|
|
|
|
2015-01-10 20:26:08 +01:00
|
|
|
|
with import ./lib.nix { inherit pkgs; };
|
2015-01-07 20:31:32 +01:00
|
|
|
|
|
|
|
|
|
self: super: {
|
|
|
|
|
|
2015-03-09 20:11:23 +01:00
|
|
|
|
# Suitable LLVM version.
|
|
|
|
|
llvmPackages = pkgs.llvmPackages_35;
|
|
|
|
|
|
2015-01-19 12:12:28 +01:00
|
|
|
|
# Disable GHC 7.10.x core libraries.
|
2015-01-07 20:31:32 +01:00
|
|
|
|
array = null;
|
|
|
|
|
base = null;
|
|
|
|
|
binary = null;
|
|
|
|
|
bin-package-db = null;
|
|
|
|
|
bytestring = null;
|
|
|
|
|
Cabal = null;
|
|
|
|
|
containers = null;
|
|
|
|
|
deepseq = null;
|
|
|
|
|
directory = null;
|
|
|
|
|
filepath = null;
|
|
|
|
|
ghc-prim = null;
|
|
|
|
|
haskeline = null;
|
|
|
|
|
hoopl = null;
|
|
|
|
|
hpc = null;
|
|
|
|
|
integer-gmp = null;
|
|
|
|
|
pretty = null;
|
|
|
|
|
process = null;
|
|
|
|
|
rts = null;
|
|
|
|
|
template-haskell = null;
|
|
|
|
|
terminfo = null;
|
|
|
|
|
time = null;
|
|
|
|
|
transformers = null;
|
|
|
|
|
unix = null;
|
|
|
|
|
xhtml = null;
|
|
|
|
|
|
2015-04-11 23:01:10 +02:00
|
|
|
|
# ekmett/linear#74
|
|
|
|
|
linear = overrideCabal super.linear (drv: {
|
|
|
|
|
prePatch = "sed -i 's/-Werror//g' linear.cabal";
|
|
|
|
|
});
|
|
|
|
|
|
2015-03-13 04:20:56 +01:00
|
|
|
|
# Cabal_1_22_1_1 requires filepath >=1 && <1.4
|
|
|
|
|
cabal-install = dontCheck (super.cabal-install.override { Cabal = null; });
|
|
|
|
|
|
2015-09-15 12:43:14 +02:00
|
|
|
|
# Don't compile jailbreak-cabal with Cabal 1.22.x because of https://github.com/peti/jailbreak-cabal/issues/9.
|
2015-08-07 15:33:19 +02:00
|
|
|
|
Cabal_1_23_0_0 = overrideCabal super.Cabal_1_22_4_0 (drv: {
|
|
|
|
|
version = "1.23.0.0";
|
|
|
|
|
src = pkgs.fetchFromGitHub {
|
|
|
|
|
owner = "haskell";
|
|
|
|
|
repo = "cabal";
|
|
|
|
|
rev = "fe7b8784ac0a5848974066bdab76ce376ba67277";
|
|
|
|
|
sha256 = "1d70ryz1l49pkr70g8r9ysqyg1rnx84wwzx8hsg6vwnmg0l5am7s";
|
|
|
|
|
};
|
|
|
|
|
jailbreak = false;
|
|
|
|
|
doHaddock = false;
|
|
|
|
|
postUnpack = "sourceRoot+=/Cabal";
|
|
|
|
|
});
|
2015-09-15 12:43:14 +02:00
|
|
|
|
jailbreak-cabal = super.jailbreak-cabal.override {
|
|
|
|
|
Cabal = self.Cabal_1_23_0_0;
|
|
|
|
|
mkDerivation = drv: self.mkDerivation (drv // {
|
|
|
|
|
preConfigure = "sed -i -e 's/Cabal == 1.20\\.\\*/Cabal >= 1.23/' jailbreak-cabal.cabal";
|
|
|
|
|
});
|
|
|
|
|
};
|
2015-01-09 19:17:59 +01:00
|
|
|
|
|
2015-09-16 09:19:56 +02:00
|
|
|
|
idris = overrideCabal super.idris (drv: {
|
|
|
|
|
# "idris" binary cannot find Idris library otherwise while building.
|
|
|
|
|
# After installing it's completely fine though. Seems like Nix-specific
|
|
|
|
|
# issue so not reported.
|
|
|
|
|
preBuild = "export LD_LIBRARY_PATH=$PWD/dist/build:$LD_LIBRARY_PATH";
|
|
|
|
|
# https://github.com/idris-lang/Idris-dev/issues/2499
|
|
|
|
|
librarySystemDepends = (drv.librarySystemDepends or []) ++ [pkgs.gmp];
|
|
|
|
|
});
|
2015-05-19 15:14:14 +02:00
|
|
|
|
|
2015-04-25 04:09:43 +02:00
|
|
|
|
Extra = appendPatch super.Extra (pkgs.fetchpatch {
|
|
|
|
|
url = "https://github.com/seereason/sr-extra/commit/29787ad4c20c962924b823d02a7335da98143603.patch";
|
|
|
|
|
sha256 = "193i1xmq6z0jalwmq0mhqk1khz6zz0i1hs6lgfd7ybd6qyaqnf5f";
|
|
|
|
|
});
|
|
|
|
|
|
2015-01-09 20:57:39 +01:00
|
|
|
|
# haddock: No input file(s).
|
2015-01-10 20:27:16 +01:00
|
|
|
|
nats = dontHaddock super.nats;
|
2015-12-31 18:26:26 +01:00
|
|
|
|
bytestring-builder = dontHaddock super.bytestring-builder;
|
2015-01-09 20:57:39 +01:00
|
|
|
|
|
2015-01-09 22:24:38 +01:00
|
|
|
|
# We have time 1.5
|
2015-01-10 20:27:16 +01:00
|
|
|
|
aeson = disableCabalFlag super.aeson "old-locale";
|
2015-01-09 22:24:38 +01:00
|
|
|
|
|
2015-03-13 04:20:56 +01:00
|
|
|
|
# requires filepath >=1.1 && <1.4
|
|
|
|
|
Glob = doJailbreak super.Glob;
|
|
|
|
|
|
2015-01-07 20:31:32 +01:00
|
|
|
|
# Setup: At least the following dependencies are missing: base <4.8
|
|
|
|
|
hspec-expectations = overrideCabal super.hspec-expectations (drv: {
|
2015-08-06 14:10:48 +02:00
|
|
|
|
postPatch = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal";
|
2015-01-07 20:31:32 +01:00
|
|
|
|
});
|
2015-01-09 19:38:34 +01:00
|
|
|
|
utf8-string = overrideCabal super.utf8-string (drv: {
|
2015-08-06 14:10:48 +02:00
|
|
|
|
postPatch = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal";
|
2015-01-09 19:38:34 +01:00
|
|
|
|
});
|
2015-01-07 20:31:32 +01:00
|
|
|
|
|
2015-04-11 21:23:53 +02:00
|
|
|
|
# acid-state/safecopy#25 acid-state/safecopy#26
|
|
|
|
|
safecopy = dontCheck (super.safecopy);
|
|
|
|
|
|
2015-04-22 15:18:56 +02:00
|
|
|
|
# test suite broken, some instance is declared twice.
|
2015-04-22 21:00:01 +02:00
|
|
|
|
# https://bitbucket.org/FlorianHartwig/attobencode/issue/1
|
2015-04-22 15:18:56 +02:00
|
|
|
|
AttoBencode = dontCheck super.AttoBencode;
|
|
|
|
|
|
2015-01-09 19:53:07 +01:00
|
|
|
|
# Test suite fails with some (seemingly harmless) error.
|
|
|
|
|
# https://code.google.com/p/scrapyourboilerplate/issues/detail?id=24
|
2015-01-10 20:27:16 +01:00
|
|
|
|
syb = dontCheck super.syb;
|
2015-01-09 19:53:07 +01:00
|
|
|
|
|
2015-01-12 15:46:35 +01:00
|
|
|
|
# Test suite has stricter version bounds
|
|
|
|
|
retry = dontCheck super.retry;
|
|
|
|
|
|
2015-08-12 20:45:12 +02:00
|
|
|
|
# test/System/Posix/Types/OrphansSpec.hs:19:13:
|
|
|
|
|
# Not in scope: type constructor or class ‘Int32’
|
|
|
|
|
base-orphans = dontCheck super.base-orphans;
|
|
|
|
|
|
2015-01-12 15:58:56 +01:00
|
|
|
|
# Test suite fails with time >= 1.5
|
|
|
|
|
http-date = dontCheck super.http-date;
|
|
|
|
|
|
2015-01-10 11:02:37 +01:00
|
|
|
|
# Version 1.19.5 fails its test suite.
|
2015-01-10 20:27:16 +01:00
|
|
|
|
happy = dontCheck super.happy;
|
2015-01-10 11:02:37 +01:00
|
|
|
|
|
2015-01-30 18:43:29 +01:00
|
|
|
|
# Upstream was notified about the over-specified constraint on 'base'
|
|
|
|
|
# but refused to do anything about it because he "doesn't want to
|
|
|
|
|
# support a moving target". Go figure.
|
|
|
|
|
barecheck = doJailbreak super.barecheck;
|
|
|
|
|
|
2015-02-23 02:31:28 +01:00
|
|
|
|
# https://github.com/kazu-yamamoto/unix-time/issues/30
|
|
|
|
|
unix-time = dontCheck super.unix-time;
|
|
|
|
|
|
2015-04-25 12:45:35 +02:00
|
|
|
|
present = appendPatch super.present (pkgs.fetchpatch {
|
|
|
|
|
url = "https://github.com/chrisdone/present/commit/6a61f099bf01e2127d0c68f1abe438cd3eaa15f7.patch";
|
|
|
|
|
sha256 = "1vn3xm38v2f4lzyzkadvq322f3s2yf8c88v56wpdpzfxmvlzaqr8";
|
|
|
|
|
});
|
2015-03-13 04:20:56 +01:00
|
|
|
|
|
|
|
|
|
ghcjs-prim = self.callPackage ({ mkDerivation, fetchgit, primitive }: mkDerivation {
|
|
|
|
|
pname = "ghcjs-prim";
|
|
|
|
|
version = "0.1.0.0";
|
|
|
|
|
src = fetchgit {
|
|
|
|
|
url = git://github.com/ghcjs/ghcjs-prim.git;
|
2015-05-11 06:46:24 +02:00
|
|
|
|
rev = "dfeaab2aafdfefe46bf12960d069f28d2e5f1454"; # ghc-7.10 branch
|
|
|
|
|
sha256 = "19kyb26nv1hdpp0kc2gaxkq5drw5ib4za0641py5i4bbf1g58yvy";
|
2015-03-13 04:20:56 +01:00
|
|
|
|
};
|
|
|
|
|
buildDepends = [ primitive ];
|
|
|
|
|
license = pkgs.stdenv.lib.licenses.bsd3;
|
|
|
|
|
}) {};
|
2015-04-11 23:20:06 +02:00
|
|
|
|
|
|
|
|
|
# diagrams/monoid-extras#19
|
|
|
|
|
monoid-extras = overrideCabal super.monoid-extras (drv: {
|
|
|
|
|
prePatch = "sed -i 's|4\.8|4.9|' monoid-extras.cabal";
|
|
|
|
|
});
|
2015-04-11 23:26:32 +02:00
|
|
|
|
|
|
|
|
|
# diagrams/statestack#5
|
|
|
|
|
statestack = overrideCabal super.statestack (drv: {
|
|
|
|
|
prePatch = "sed -i 's|4\.8|4.9|' statestack.cabal";
|
|
|
|
|
});
|
2015-04-11 23:40:04 +02:00
|
|
|
|
|
|
|
|
|
# diagrams/diagrams-core#83
|
|
|
|
|
diagrams-core = overrideCabal super.diagrams-core (drv: {
|
|
|
|
|
prePatch = "sed -i 's|4\.8|4.9|' diagrams-core.cabal";
|
|
|
|
|
});
|
2015-04-12 00:22:50 +02:00
|
|
|
|
|
2015-04-14 20:24:58 +02:00
|
|
|
|
timezone-series = doJailbreak super.timezone-series;
|
|
|
|
|
timezone-olson = doJailbreak super.timezone-olson;
|
|
|
|
|
libmpd = dontCheck super.libmpd;
|
|
|
|
|
xmonad-extras = overrideCabal super.xmonad-extras (drv: {
|
|
|
|
|
postPatch = ''
|
|
|
|
|
sed -i -e "s,<\*,<¤,g" XMonad/Actions/Volume.hs
|
|
|
|
|
'';
|
|
|
|
|
});
|
2015-03-31 15:30:28 +02:00
|
|
|
|
|
|
|
|
|
# Workaround for a workaround, see comment for "ghcjs" flag.
|
|
|
|
|
jsaddle = let jsaddle' = disableCabalFlag super.jsaddle "ghcjs";
|
|
|
|
|
in addBuildDepends jsaddle' [ self.glib self.gtk3 self.webkitgtk3
|
|
|
|
|
self.webkitgtk3-javascriptcore ];
|
|
|
|
|
|
2015-04-17 17:40:48 +02:00
|
|
|
|
# https://github.com/lymar/hastache/issues/47
|
|
|
|
|
hastache = dontCheck super.hastache;
|
|
|
|
|
|
2015-04-19 19:48:11 +02:00
|
|
|
|
# The compat library is empty in the presence of mtl 2.2.x.
|
|
|
|
|
mtl-compat = dontHaddock super.mtl-compat;
|
|
|
|
|
|
2015-04-19 20:05:11 +02:00
|
|
|
|
# https://github.com/bos/bloomfilter/issues/11
|
|
|
|
|
bloomfilter = dontHaddock (appendConfigureFlag super.bloomfilter "--ghc-option=-XFlexibleContexts");
|
|
|
|
|
|
2015-04-19 20:18:13 +02:00
|
|
|
|
# https://github.com/ocharles/tasty-rerun/issues/5
|
|
|
|
|
tasty-rerun = dontHaddock (appendConfigureFlag super.tasty-rerun "--ghc-option=-XFlexibleContexts");
|
|
|
|
|
|
2015-05-18 15:59:44 +02:00
|
|
|
|
# http://hub.darcs.net/ivanm/graphviz/issue/5
|
2015-08-05 21:48:18 +02:00
|
|
|
|
graphviz = dontCheck (dontJailbreak (appendPatch super.graphviz ./patches/graphviz-fix-ghc710.patch));
|
2015-05-18 15:59:44 +02:00
|
|
|
|
|
2015-05-05 21:24:27 +02:00
|
|
|
|
# https://github.com/HugoDaniel/RFC3339/issues/14
|
|
|
|
|
timerep = dontCheck super.timerep;
|
|
|
|
|
|
2015-05-18 18:16:38 +02:00
|
|
|
|
# Required to fix version 0.91.0.0.
|
|
|
|
|
wx = dontHaddock (appendConfigureFlag super.wx "--ghc-option=-XFlexibleContexts");
|
|
|
|
|
|
2015-07-13 13:05:15 +02:00
|
|
|
|
# Inexplicable haddock failure
|
|
|
|
|
# https://github.com/gregwebs/aeson-applicative/issues/2
|
|
|
|
|
aeson-applicative = dontHaddock super.aeson-applicative;
|
2015-07-17 18:01:41 +02:00
|
|
|
|
|
|
|
|
|
# GHC 7.10.1 is affected by https://github.com/srijs/hwsl2/issues/1.
|
|
|
|
|
hwsl2 = dontCheck super.hwsl2;
|
|
|
|
|
|
2015-08-06 17:14:50 +02:00
|
|
|
|
# https://github.com/haskell/haddock/issues/427
|
|
|
|
|
haddock = dontCheck super.haddock;
|
|
|
|
|
|
2015-08-19 19:15:38 +02:00
|
|
|
|
# The tests in vty-ui do not build, but vty-ui itself builds.
|
|
|
|
|
vty-ui = enableCabalFlag super.vty-ui "no-tests";
|
|
|
|
|
|
2016-01-08 18:43:24 +01:00
|
|
|
|
# https://github.com/fpco/stackage/issues/1112
|
|
|
|
|
vector-algorithms = dontCheck super.vector-algorithms;
|
|
|
|
|
|
2015-01-10 11:02:37 +01:00
|
|
|
|
}
|