2015-01-07 22:31:32 +03:00
|
|
|
{ pkgs }:
|
|
|
|
|
2015-01-10 22:26:08 +03:00
|
|
|
with import ./lib.nix { inherit pkgs; };
|
2015-01-07 22:31:32 +03:00
|
|
|
|
|
|
|
self: super: {
|
|
|
|
|
|
|
|
# Disable GHC 7.9.x core libraries.
|
|
|
|
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-01-10 20:50:49 +03:00
|
|
|
# We have Cabal 1.22.x.
|
|
|
|
jailbreak-cabal = super.jailbreak-cabal.override { Cabal = null; };
|
2015-01-09 21:17:59 +03:00
|
|
|
|
2015-01-09 21:35:41 +03:00
|
|
|
# GHC 7.10.x's Haddock binary cannot generate hoogle files.
|
|
|
|
# https://ghc.haskell.org/trac/ghc/ticket/9921
|
|
|
|
mkDerivation = drv: super.mkDerivation (drv // { doHoogle = false; });
|
2015-01-07 22:31:32 +03:00
|
|
|
|
2015-01-09 22:57:39 +03:00
|
|
|
# haddock: No input file(s).
|
2015-01-10 22:27:16 +03:00
|
|
|
nats = dontHaddock super.nats;
|
2015-01-09 22:57:39 +03:00
|
|
|
|
2015-01-09 21:53:07 +03:00
|
|
|
# These used to be core packages in GHC 7.8.x.
|
2015-01-08 13:55:39 +03:00
|
|
|
old-locale = self.old-locale_1_0_0_7;
|
|
|
|
old-time = self.old-time_1_1_0_3;
|
|
|
|
|
2015-01-09 21:33:10 +03:00
|
|
|
# We have transformers 4.x
|
2015-01-08 13:55:39 +03:00
|
|
|
mtl = self.mtl_2_2_1;
|
2015-01-10 22:27:16 +03:00
|
|
|
transformers-compat = disableCabalFlag super.transformers-compat "three";
|
2015-01-08 13:55:39 +03:00
|
|
|
|
2015-01-10 00:24:38 +03:00
|
|
|
# We have time 1.5
|
2015-01-10 22:27:16 +03:00
|
|
|
aeson = disableCabalFlag super.aeson "old-locale";
|
2015-01-10 00:24:38 +03:00
|
|
|
|
2015-01-07 22:31:32 +03:00
|
|
|
# Setup: At least the following dependencies are missing: base <4.8
|
|
|
|
hspec-expectations = overrideCabal super.hspec-expectations (drv: {
|
|
|
|
patchPhase = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal";
|
|
|
|
});
|
2015-01-09 21:38:34 +03:00
|
|
|
utf8-string = overrideCabal super.utf8-string (drv: {
|
|
|
|
patchPhase = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal";
|
|
|
|
});
|
2015-01-12 17:14:35 +03:00
|
|
|
options = overrideCabal super.options (drv: {
|
|
|
|
# edited cabal file simply makes a stricter base bound
|
|
|
|
editedCabalFile = null;
|
|
|
|
|
|
|
|
# See https://github.com/shlevy/haskell-options/tree/AMP. There is no
|
|
|
|
# official upstream bugtracker but I've emailed this patch to the maintainer
|
|
|
|
patches = [ ./patches/options-amp.patch ];
|
|
|
|
});
|
2015-01-12 17:37:20 +03:00
|
|
|
chell = overrideCabal super.chell (drv: {
|
|
|
|
# edited cabal file simply makes a stricter base bound
|
|
|
|
editedCabalFile = null;
|
|
|
|
|
|
|
|
# See https://github.com/shlevy/chell/tree/AMP. There is no
|
|
|
|
# official upstream bugtracker but I've emailed this patch to the maintainer
|
|
|
|
patches = [ ./patches/chell-amp.patch ];
|
|
|
|
});
|
2015-01-07 22:31:32 +03:00
|
|
|
|
2015-01-10 00:18:16 +03:00
|
|
|
# bos/attoparsec#92
|
2015-01-10 22:27:16 +03:00
|
|
|
attoparsec = dontCheck super.attoparsec;
|
2015-01-10 00:18:16 +03:00
|
|
|
|
2015-01-10 01:02:42 +03:00
|
|
|
# test suite hangs silently for at least 10 minutes
|
2015-01-10 22:27:16 +03:00
|
|
|
split = dontCheck super.split;
|
2015-01-10 01:02:42 +03:00
|
|
|
|
2015-01-09 21:53:07 +03:00
|
|
|
# Test suite fails with some (seemingly harmless) error.
|
|
|
|
# https://code.google.com/p/scrapyourboilerplate/issues/detail?id=24
|
2015-01-10 22:27:16 +03:00
|
|
|
syb = dontCheck super.syb;
|
2015-01-09 21:53:07 +03:00
|
|
|
|
2015-01-10 13:02:37 +03:00
|
|
|
# Version 1.19.5 fails its test suite.
|
2015-01-10 22:27:16 +03:00
|
|
|
happy = dontCheck super.happy;
|
2015-01-10 13:02:37 +03:00
|
|
|
|
|
|
|
# Test suite hangs silently without consuming any CPU.
|
|
|
|
# https://github.com/ndmitchell/extra/issues/4
|
2015-01-10 22:27:16 +03:00
|
|
|
extra = dontCheck super.extra;
|
2015-01-10 13:02:37 +03:00
|
|
|
|
|
|
|
}
|
|
|
|
// {
|
|
|
|
# Not on Hackage yet.
|
|
|
|
doctest = self.mkDerivation {
|
|
|
|
pname = "doctest";
|
|
|
|
version = "0.9.11.1";
|
|
|
|
src = pkgs.fetchgit {
|
|
|
|
url = "git://github.com/sol/doctest.git";
|
|
|
|
sha256 = "a01ced437f5d733f916dc62ea6a67e0e5d275164ba317da33245cf9374f23925";
|
|
|
|
rev = "c85fdaaa92d1f0334d835254d63bdc30f7077387";
|
|
|
|
};
|
|
|
|
isLibrary = true;
|
|
|
|
isExecutable = true;
|
|
|
|
doCheck = false;
|
|
|
|
buildDepends = with self; [
|
|
|
|
base deepseq directory filepath ghc ghc-paths process syb
|
|
|
|
transformers
|
|
|
|
];
|
|
|
|
testDepends = with self; [
|
|
|
|
base base-compat deepseq directory filepath ghc ghc-paths hspec
|
|
|
|
HUnit process QuickCheck setenv silently stringbuilder syb
|
|
|
|
transformers
|
|
|
|
];
|
|
|
|
homepage = "https://github.com/sol/doctest#readme";
|
|
|
|
description = "Test interactive Haskell examples";
|
2015-01-10 14:50:09 +03:00
|
|
|
license = pkgs.stdenv.lib.licenses.mit;
|
2015-01-10 13:02:37 +03:00
|
|
|
};
|
2015-01-07 22:31:32 +03:00
|
|
|
}
|