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-04 21:31:44 +02:00
|
|
|
# should be fixed in versions > 0.6
|
|
|
|
pandoc-citeproc = overrideCabal super.pandoc-citeproc (drv: {
|
|
|
|
patches = [
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/jgm/pandoc-citeproc/commit/4e4f9c2.patch";
|
|
|
|
sha256 = "18b08k56g5q4zz6jxczkrddblyn52vmd0811n1icfdpzqhgykn4p";
|
|
|
|
})
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/jgm/pandoc-citeproc/commit/34cc147.patch";
|
|
|
|
sha256 = "09vrdvg5w14qckn154zlxvk6i2ikmmhpsl9mxycxkql3rl4dqam3";
|
|
|
|
})
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/jgm/pandoc-citeproc/commit/8242c70.patch";
|
|
|
|
sha256 = "1lqpwxzz2www81w4mym75z36bsavqfj67hyvzn20ffvxq42yw7ry";
|
|
|
|
})
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/jgm/pandoc-citeproc/commit/e59f88d.patch";
|
|
|
|
sha256 = "05699hj3qa2vrfdnikj7rzmc2ajrkd7p8yd4cjlhmqq9asq90xzb";
|
|
|
|
})
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/jgm/pandoc-citeproc/commit/ae6ca86.patch";
|
|
|
|
sha256 = "19cag39k5s7iqagpvss9c2ny5g0lwnrawaqcc0labihc1a181k8l";
|
|
|
|
})
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/jgm/pandoc-citeproc/commit/f5a9fc7.patch";
|
|
|
|
sha256 = "08lsinh3mkjpz3cqj5i1vcnzkyl07jp38qcjcwcw7m2b7gsjbpvm";
|
|
|
|
})
|
|
|
|
(pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/jgm/pandoc-citeproc/commit/780a554.patch";
|
|
|
|
sha256 = "1kfn0mcp3vp32c9w8gyz0p0jv0xn90as9mxm8a2lmjng52jlzvy4";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
});
|
|
|
|
|
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-04-04 05:33:22 +02:00
|
|
|
HStringTemplate = self.HStringTemplate_0_8_3;
|
|
|
|
|
2015-01-10 18:50:49 +01:00
|
|
|
# We have Cabal 1.22.x.
|
|
|
|
jailbreak-cabal = super.jailbreak-cabal.override { Cabal = null; };
|
2015-01-09 19:17:59 +01:00
|
|
|
|
2015-01-09 19:35:41 +01: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 20:31:32 +01:00
|
|
|
|
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-02-23 05:51:22 +01:00
|
|
|
bytestring-builder = dontHaddock super.bytestring-builder;
|
2015-01-09 20:57:39 +01:00
|
|
|
|
2015-01-09 19:33:10 +01:00
|
|
|
# We have transformers 4.x
|
2015-01-08 11:55:39 +01:00
|
|
|
mtl = self.mtl_2_2_1;
|
2015-01-10 20:27:16 +01:00
|
|
|
transformers-compat = disableCabalFlag super.transformers-compat "three";
|
2015-01-08 11:55: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: {
|
|
|
|
patchPhase = "sed -i -e 's|base < 4.8|base|' hspec-expectations.cabal";
|
|
|
|
});
|
2015-01-09 19:38:34 +01:00
|
|
|
utf8-string = overrideCabal super.utf8-string (drv: {
|
|
|
|
patchPhase = "sed -i -e 's|base >= 3 && < 4.8|base|' utf8-string.cabal";
|
|
|
|
});
|
2015-02-23 02:31:28 +01:00
|
|
|
esqueleto = doJailbreak super.esqueleto;
|
2015-04-09 01:33:33 +02:00
|
|
|
pointfree = doJailbreak super.pointfree;
|
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-01-09 22:18:16 +01:00
|
|
|
# bos/attoparsec#92
|
2015-01-10 20:27:16 +01:00
|
|
|
attoparsec = dontCheck super.attoparsec;
|
2015-01-09 22:18:16 +01:00
|
|
|
|
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-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-23 11:38:49 +01:00
|
|
|
# Test suite fails in "/tokens_bytestring_unicode.g.bin".
|
|
|
|
alex = dontCheck super.alex;
|
|
|
|
|
2015-03-13 04:20:56 +01:00
|
|
|
# TODO: should eventually update the versions in hackage-packages.nix
|
|
|
|
haddock-library = overrideCabal super.haddock-library (drv: {
|
|
|
|
version = "1.2.0";
|
|
|
|
sha256 = "0kf8qihkxv86phaznb3liq6qhjs53g3iq0zkvz5wkvliqas4ha56";
|
|
|
|
});
|
|
|
|
haddock-api = overrideCabal super.haddock-api (drv: {
|
|
|
|
version = "2.16.0";
|
|
|
|
sha256 = "0hk42w6fbr6xp8xcpjv00bhi9r75iig5kp34vxbxdd7k5fqxr1hj";
|
|
|
|
});
|
|
|
|
haddock = overrideCabal super.haddock (drv: {
|
|
|
|
version = "2.16.0";
|
|
|
|
sha256 = "1afb96w1vv3gmvha2f1h3p8zywpdk8dfk6bgnsa307ydzsmsc3qa";
|
|
|
|
});
|
|
|
|
|
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-03-27 21:53:11 +01:00
|
|
|
syb-with-class = appendPatch super.syb-with-class (pkgs.fetchpatch {
|
|
|
|
url = "https://github.com/seereason/syb-with-class/compare/adc86a9...719e567.patch";
|
|
|
|
sha256 = "1lwwvxyhxcmppdapbgpfhwi7xc2z78qir03xjrpzab79p2qyq7br";
|
|
|
|
});
|
|
|
|
|
2015-04-09 20:49:23 +02:00
|
|
|
wl-pprint = overrideCabal super.wl-pprint (drv: {
|
|
|
|
postPatch = "sed -i '113iimport Prelude hiding ((<$>))' Text/PrettyPrint/Leijen.hs";
|
|
|
|
jailbreak = true;
|
|
|
|
});
|
|
|
|
|
2015-02-23 02:31:28 +01:00
|
|
|
# https://github.com/kazu-yamamoto/unix-time/issues/30
|
|
|
|
unix-time = dontCheck super.unix-time;
|
|
|
|
|
|
|
|
# Until the changes have been pushed to Hackage
|
2015-04-09 01:33:33 +02:00
|
|
|
annotated-wl-pprint = appendPatch super.annotated-wl-pprint (pkgs.fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/david-christiansen/annotated-wl-pprint/pull/2.patch";
|
|
|
|
sha256 = "0n0fbq3vd7b9kfmhg089q0dy40vawq4q88il3zc9ybivhi62nwv4";
|
|
|
|
});
|
|
|
|
ghc-events = appendPatch super.ghc-events (pkgs.fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/haskell/ghc-events/pull/8.patch";
|
|
|
|
sha256 = "1k881jrvzfvs761jgfhf5nsbmbc33c9333l4s0f5088p46ff2n1l";
|
2015-02-23 02:31:28 +01:00
|
|
|
});
|
2015-04-17 22:48:09 +02:00
|
|
|
dependent-sum-template = appendPatch super.dependent-sum-template (pkgs.fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/mokus0/dependent-sum-template/pull/4.patch";
|
|
|
|
sha256 = "1yb1ny4ckl4d3sf4xnvpbsa9rw2dficzgipijs5s3729dnsc3rb0";
|
|
|
|
});
|
2015-04-17 22:47:56 +02:00
|
|
|
mueval = appendPatch super.mueval (pkgs.fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/gwern/mueval/pull/10.patch";
|
|
|
|
sha256 = "1gs8p89d1qsrd1qycbhf6kv4qw0sbb8m6dy106dqkmdzcjzcyq74";
|
|
|
|
});
|
2015-03-13 04:20:56 +01:00
|
|
|
|
2015-04-17 22:48:54 +02:00
|
|
|
# Already applied in darcs repository.
|
|
|
|
gnuplot = appendPatch super.gnuplot ./gnuplot-fix-new-time.patch;
|
|
|
|
|
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;
|
|
|
|
rev = "ca08e46257dc276e01d08fb47a693024bae001fa"; # ghc-7.10 branch
|
|
|
|
sha256 = "0w7sqzp5p70yhmdhqasgkqbf3b61wb24djlavwil2j8ry9y472w3";
|
|
|
|
};
|
|
|
|
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
|
|
|
|
|
|
|
# diagrams/diagrams-core#83
|
|
|
|
diagrams-lib = overrideCabal super.diagrams-lib (drv: {
|
|
|
|
prePatch = "sed -i 's|4\.8|4.9|' diagrams-lib.cabal";
|
|
|
|
patches = [ ./diagrams-lib-flexible-contexts.patch ];
|
|
|
|
});
|
2015-04-14 20:24:58 +02:00
|
|
|
|
2015-04-17 22:49:02 +02:00
|
|
|
# https://github.com/mokus0/misfortune/pull/1
|
|
|
|
misfortune = appendPatch super.misfortune (pkgs.fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/mokus0/misfortune/pull/1.patch";
|
|
|
|
sha256 = "15frwdallm3i6k7mil26bbjd4wl6k9h20ixf3cmyris3q3jhlcfh";
|
|
|
|
});
|
|
|
|
|
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-16 12:25:34 +02:00
|
|
|
# Fix evaluation in GHC >=7.8: https://github.com/lambdabot/lambdabot/issues/116
|
|
|
|
lambdabot = appendPatch super.lambdabot ./lambdabot-fix-ghc78.patch;
|
|
|
|
|
2015-04-17 22:49:38 +02:00
|
|
|
# These packages don't have maintainers.
|
|
|
|
brainfuck = appendPatch super.brainfuck ./brainfuck-fix-ghc710.patch;
|
|
|
|
unlambda = appendPatch super.unlambda ./unlambda-fix-ghc710.patch;
|
|
|
|
|
2015-04-17 22:50:14 +02:00
|
|
|
# Sent e-mail to the maintainer.
|
|
|
|
IOSpec = appendPatch super.IOSpec ./IOSpec-fix-ghc710.patch;
|
|
|
|
|
2015-04-17 22:50:29 +02:00
|
|
|
# Updated Cabal file from Hackage tightened version bounds for some reason.
|
|
|
|
edit-distance = let pkg = appendPatch super.edit-distance ./edit-distance-fix-boundaries.patch;
|
|
|
|
in appendPatch pkg (pkgs.fetchpatch {
|
|
|
|
url = "https://patch-diff.githubusercontent.com/raw/batterseapower/edit-distance/pull/3.patch";
|
|
|
|
sha256 = "013x9za47vr9jx0liwgi8cdh2h2882a87h5nqvr41xqipzxfiyw1";
|
|
|
|
});
|
|
|
|
|
2015-01-10 11:02:37 +01:00
|
|
|
}
|