@@ -1,3 +1,14 @@
1+# COMMON OVERRIDES FOR THE HASKELL PACKAGE SET IN NIXPKGS
2+#
3+# This file contains haskell package overrides that are shared by all
4+# haskell package sets provided by nixpkgs and distributed via the official
5+# NixOS hydra instance.
6+#
7+# Overrides that would also make sense for custom haskell package sets not provided
8+# as part of nixpkgs and that are specific to Nix should go in configuration-nix.nix
9+#
10+# See comment at the top of configuration-nix.nix for more information about this
11+# distinction.
112{ pkgs }:
213
314with import ./lib.nix { inherit pkgs; };
@@ -15,9 +26,6 @@ self: super: {
1526 # Link statically to avoid runtime dependency on GHC.
1627 jailbreak-cabal = (disableSharedExecutables super.jailbreak-cabal).override { Cabal = self.Cabal_1_20_0_4; };
1728
18− # Apply NixOS-specific patches.
19− ghc-paths = appendPatch super.ghc-paths ./patches/ghc-paths-nix.patch;
20−
2129 # enable using a local hoogle with extra packagages in the database
2230 # nix-shell -p "haskellPackages.hoogleLocal (with haskellPackages; [ mtl lens ])"
2331 # $ hoogle server
@@ -35,9 +43,6 @@ self: super: {
3543 statistics = dontCheck super.statistics;
3644 c2hs = dontCheck super.c2hs;
3745
38− # fix errors caused by hardening flags
39− epanet-haskell = disableHardening super.epanet-haskell ["format"];
40−
4146 # This test keeps being aborted because it runs too quietly for too long
4247 Lazy-Pbkdf2 = if pkgs.stdenv.isi686 then dontCheck super.Lazy-Pbkdf2 else super.Lazy-Pbkdf2;
4348
@@ -66,49 +71,11 @@ self: super: {
6671 hinotify = if pkgs.stdenv.isLinux then self.hinotify else self.fsnotify;
6772 };
6873
69− # CUDA needs help finding the SDK headers and libraries.
70− cuda = overrideCabal super.cuda (drv: {
71− extraLibraries = (drv.extraLibraries or []) ++ [pkgs.linuxPackages.nvidia_x11];
72− configureFlags = (drv.configureFlags or []) ++
73− pkgs.lib.optional pkgs.stdenv.is64bit "--extra-lib-dirs=${pkgs.cudatoolkit}/lib64" ++ [
74− "--extra-lib-dirs=${pkgs.cudatoolkit}/lib"
75− "--extra-include-dirs=${pkgs.cudatoolkit}/include"
76− ];
77− preConfigure = ''
78− unset CC # unconfuse the haskell-cuda configure script
79− sed -i -e 's|/usr/local/cuda|${pkgs.cudatoolkit}|g' configure
80− '';
81− });
82−
83− # jni needs help finding libjvm.so because it's in a weird location.
84− jni = overrideCabal super.jni (drv: {
85− preConfigure = ''
86− local libdir=( "${pkgs.jdk}/lib/openjdk/jre/lib/"*"/server" )
87− configureFlags+=" --extra-lib-dir=''${libdir[0]}"
88− '';
89− });
90−
91− # The package doesn't know about the AL include hierarchy.
92− # https://github.com/phaazon/al/issues/1
93− al = appendConfigureFlag super.al "--extra-include-dirs=${pkgs.openal}/include/AL";
94−
9574 # https://github.com/froozen/kademlia/issues/2
9675 kademlia = dontCheck super.kademlia;
9776
98− # Won't find it's header files without help.
99− sfml-audio = appendConfigureFlag super.sfml-audio "--extra-include-dirs=${pkgs.openal}/include/AL";
100−
101− hzk = overrideCabal super.hzk (drv: {
102− preConfigure = "sed -i -e /include-dirs/d hzk.cabal";
103− configureFlags = "--extra-include-dirs=${pkgs.zookeeper_mt}/include/zookeeper";
104− doCheck = false;
105− });
106−
107− haskakafka = overrideCabal super.haskakafka (drv: {
108− preConfigure = "sed -i -e /extra-lib-dirs/d -e /include-dirs/d haskakafka.cabal";
109− configureFlags = "--extra-include-dirs=${pkgs.rdkafka}/include/librdkafka";
110− doCheck = false;
111− });
77+ hzk = dontCheck super.hzk;
78+ haskakafka = dontCheck super.haskakafka;
11279
11380 # Depends on broken "lss" package.
11481 snaplet-lss = dontDistribute super.snaplet-lss;
@@ -127,9 +94,6 @@ self: super: {
12794 # Depends on broken "hails" package.
12895 hails-bin = dontDistribute super.hails-bin;
12996
130− # Foreign dependency name clashes with another Haskell package.
131− libarchive-conduit = super.libarchive-conduit.override { archive = pkgs.libarchive; };
132−
13397 # Switch levmar build to openblas.
13498 bindings-levmar = overrideCabal super.bindings-levmar (drv: {
13599 preConfigure = ''
@@ -192,11 +156,6 @@ self: super: {
192156 # https://github.com/jaspervdj/hakyll/issues/491
193157 else dontCheck super.hakyll;
194158
195− # Heist's test suite requires system pandoc
196− heist = overrideCabal super.heist (drv: {
197− testToolDepends = [pkgs.pandoc];
198− });
199−
200159 # cabal2nix likes to generate dependencies on hinotify when hfsevents is really required
201160 # on darwin: https://github.com/NixOS/cabal2nix/issues/146.
202161 hinotify = if pkgs.stdenv.isDarwin then self.hfsevents else super.hinotify;
@@ -208,20 +167,6 @@ self: super: {
208167 then addBuildDepend (dontCheck super.fsnotify) pkgs.darwin.apple_sdk.frameworks.Cocoa
209168 else dontCheck super.fsnotify;
210169
211− # the system-fileio tests use canonicalizePath, which fails in the sandbox
212− system-fileio = if pkgs.stdenv.isDarwin then dontCheck super.system-fileio else super.system-fileio;
213−
214− # Prevents needing to add security_tool as a build tool to all of x509-system's
215− # dependencies.
216− x509-system = if pkgs.stdenv.isDarwin && !pkgs.stdenv.cc.nativeLibc
217− then let inherit (pkgs.darwin) security_tool;
218− in pkgs.lib.overrideDerivation (addBuildDepend super.x509-system security_tool) (drv: {
219− postPatch = (drv.postPatch or "") + ''
220− substituteInPlace System/X509/MacOS.hs --replace security ${security_tool}/bin/security
221− '';
222− })
223− else super.x509-system;
224−
225170 double-conversion = if !pkgs.stdenv.isDarwin
226171 then addExtraLibrary super.double-conversion pkgs.stdenv.cc.cc.lib
227172 else addExtraLibrary (overrideCabal super.double-conversion (drv:
@@ -243,29 +188,9 @@ self: super: {
243188 # tests don't compile for some odd reason
244189 jwt = dontCheck super.jwt;
245190
246− # https://github.com/NixOS/cabal2nix/issues/136 and https://github.com/NixOS/cabal2nix/issues/216
247− gio = disableHardening (addPkgconfigDepend (addBuildTool super.gio self.gtk2hs-buildtools) pkgs.glib) ["fortify"];
248− glib = disableHardening (addPkgconfigDepend (addBuildTool super.glib self.gtk2hs-buildtools) pkgs.glib) ["fortify"];
249− gtk3 = disableHardening (super.gtk3.override { inherit (pkgs) gtk3; }) ["fortify"];
250− gtk = disableHardening (addPkgconfigDepend (addBuildTool super.gtk self.gtk2hs-buildtools) pkgs.gtk2) ["fortify"];
251− gtksourceview2 = (addPkgconfigDepend super.gtksourceview2 pkgs.gtk2).override { inherit (pkgs.gnome2) gtksourceview; };
252− gtksourceview3 = super.gtksourceview3.override { inherit (pkgs.gnome3) gtksourceview; };
253−
254− # Need WebkitGTK, not just webkit.
255− webkit = super.webkit.override { webkit = pkgs.webkitgtk2; };
256− webkitgtk3 = super.webkitgtk3.override { webkit = pkgs.webkitgtk24x; };
257− webkitgtk3-javascriptcore = super.webkitgtk3-javascriptcore.override { webkit = pkgs.webkitgtk24x; };
258− websnap = super.websnap.override { webkit = pkgs.webkitgtk24x; };
259−
260191 # https://github.com/mvoidex/hsdev/issues/11
261192 hsdev = dontHaddock super.hsdev;
262193
263− hs-mesos = overrideCabal super.hs-mesos (drv: {
264− # Pass _only_ mesos; the correct protobuf is propagated.
265− extraLibraries = [ pkgs.mesos ];
266− preConfigure = "sed -i -e /extra-lib-dirs/d -e 's|, /usr/include, /usr/local/include/mesos||' hs-mesos.cabal";
267− });
268−
269194 # Upstream notified by e-mail.
270195 permutation = dontCheck super.permutation;
271196
@@ -307,38 +232,6 @@ self: super: {
307232 HerbiePlugin = dontCheck super.HerbiePlugin;
308233 wai-cors = dontCheck super.wai-cors;
309234
310− # These packages try to access the network.
311− amqp = dontCheck super.amqp;
312− amqp-conduit = dontCheck super.amqp-conduit;
313− bitcoin-api = dontCheck super.bitcoin-api;
314− bitcoin-api-extra = dontCheck super.bitcoin-api-extra;
315− bitx-bitcoin = dontCheck super.bitx-bitcoin; # http://hydra.cryp.to/build/926187/log/raw
316− concurrent-dns-cache = dontCheck super.concurrent-dns-cache;
317− digitalocean-kzs = dontCheck super.digitalocean-kzs; # https://github.com/KazumaSATO/digitalocean-kzs/issues/1
318− github-types = dontCheck super.github-types; # http://hydra.cryp.to/build/1114046/nixlog/1/raw
319− hadoop-rpc = dontCheck super.hadoop-rpc; # http://hydra.cryp.to/build/527461/nixlog/2/raw
320− hasql = dontCheck super.hasql; # http://hydra.cryp.to/build/502489/nixlog/4/raw
321− hasql-transaction = dontCheck super.hasql-transaction; # wants to connect to postgresql
322− hjsonschema = overrideCabal super.hjsonschema (drv: { testTarget = "local"; });
323− marmalade-upload = dontCheck super.marmalade-upload; # http://hydra.cryp.to/build/501904/nixlog/1/raw
324− mongoDB = dontCheck super.mongoDB;
325− network-transport-tcp = dontCheck super.network-transport-tcp;
326− network-transport-zeromq = dontCheck super.network-transport-zeromq; # https://github.com/tweag/network-transport-zeromq/issues/30
327− pipes-mongodb = dontCheck super.pipes-mongodb; # http://hydra.cryp.to/build/926195/log/raw
328− raven-haskell = dontCheck super.raven-haskell; # http://hydra.cryp.to/build/502053/log/raw
329− riak = dontCheck super.riak; # http://hydra.cryp.to/build/498763/log/raw
330− scotty-binding-play = dontCheck super.scotty-binding-play;
331− servant-router = dontCheck super.servant-router;
332− serversession-backend-redis = dontCheck super.serversession-backend-redis;
333− slack-api = dontCheck super.slack-api; # https://github.com/mpickering/slack-api/issues/5
334− socket = dontCheck super.socket;
335− stackage = dontCheck super.stackage; # http://hydra.cryp.to/build/501867/nixlog/1/raw
336− textocat-api = dontCheck super.textocat-api; # http://hydra.cryp.to/build/887011/log/raw
337− warp = dontCheck super.warp; # http://hydra.cryp.to/build/501073/nixlog/5/raw
338− wreq = dontCheck super.wreq; # http://hydra.cryp.to/build/501895/nixlog/1/raw
339− wreq-sb = dontCheck super.wreq-sb; # http://hydra.cryp.to/build/783948/log/raw
340− wuss = dontCheck super.wuss; # http://hydra.cryp.to/build/875964/nixlog/2/raw
341−
342235 # https://github.com/NICTA/digit/issues/3
343236 digit = dontCheck super.digit;
344237
@@ -348,9 +241,6 @@ self: super: {
348241 # https://github.com/ekmett/structures/issues/3
349242 structures = dontCheck super.structures;
350243
351− # Tries to mess with extended POSIX attributes, but can't in our chroot environment.
352− xattr = dontCheck super.xattr;
353−
354244 # Disable test suites to fix the build.
355245 acme-year = dontCheck super.acme-year; # http://hydra.cryp.to/build/497858/log/raw
356246 aeson-lens = dontCheck super.aeson-lens; # http://hydra.cryp.to/build/496769/log/raw
@@ -426,8 +316,6 @@ self: super: {
426316 HTF = dontCheck super.HTF;
427317 htsn = dontCheck super.htsn;
428318 htsn-import = dontCheck super.htsn-import;
429− http-client-openssl = dontCheck super.http-client-openssl;
430− http-client-tls = dontCheck super.http-client-tls;
431319 ihaskell = dontCheck super.ihaskell;
432320 influxdb = dontCheck super.influxdb;
433321 itanium-abi = dontCheck super.itanium-abi;
@@ -492,9 +380,6 @@ self: super: {
492380 snap-core = dontCheck super.snap-core;
493381 sourcemap = dontCheck super.sourcemap;
494382
495− # Needs access to locale data, but looks for it in the wrong place.
496− scholdoc-citeproc = dontCheck super.scholdoc-citeproc;
497−
498383 # These test suites run for ages, even on a fast machine. This is nuts.
499384 Random123 = dontCheck super.Random123;
500385 systemd = dontCheck super.systemd;
@@ -505,12 +390,6 @@ self: super: {
505390 # https://github.com/bos/snappy/issues/1
506391 snappy = dontCheck super.snappy;
507392
508− # Expect to find sendmail(1) in $PATH.
509− mime-mail = appendConfigureFlag super.mime-mail "--ghc-option=-DMIME_MAIL_SENDMAIL_PATH=\"sendmail\"";
510−
511− # Help the test suite find system timezone data.
512− tz = overrideCabal super.tz (drv: { preConfigure = "export TZDIR=${pkgs.tzdata}/share/zoneinfo"; });
513−
514393 # https://ghc.haskell.org/trac/ghc/ticket/9625
515394 vty = dontCheck super.vty;
516395 vty_5_15 = dontCheck super.vty_5_15;
@@ -530,18 +409,12 @@ self: super: {
530409 # https://github.com/pixbi/duplo/issues/25
531410 duplo = dontCheck super.duplo;
532411
533− # Nix-specific workaround
534− xmonad = appendPatch (dontCheck super.xmonad) ./patches/xmonad-nix.patch;
535−
536412 # https://github.com/evanrinehart/mikmod/issues/1
537413 mikmod = addExtraLibrary super.mikmod pkgs.libmikmod;
538414
539415 # https://github.com/basvandijk/threads/issues/10
540416 threads = dontCheck super.threads;
541417
542− # https://github.com/ucsd-progsys/liquid-fixpoint/issues/44
543− liquid-fixpoint = overrideCabal super.liquid-fixpoint (drv: { preConfigure = "patchShebangs ."; });
544−
545418 # Missing module.
546419 rematch = dontCheck super.rematch; # https://github.com/tcrayford/rematch/issues/5
547420 rematch-text = dontCheck super.rematch-text; # https://github.com/tcrayford/rematch/issues/6
@@ -561,11 +434,6 @@ self: super: {
561434 # https://github.com/vincenthz/hs-asn1/issues/12
562435 asn1-encoding = dontCheck super.asn1-encoding;
563436
564− # wxc supports wxGTX >= 3.0, but our current default version points to 2.8.
565− # http://hydra.cryp.to/build/1331287/log/raw
566− wxc = (addBuildDepend super.wxc self.split).override { wxGTK = pkgs.wxGTK30; };
567− wxcore = super.wxcore.override { wxGTK = pkgs.wxGTK30; };
568−
569437 # Depends on QuickCheck 1.x.
570438 HaVSA = super.HaVSA.override { QuickCheck = self.QuickCheck_1_2_0_1; };
571439 test-framework-quickcheck = super.test-framework-quickcheck.override { QuickCheck = self.QuickCheck_1_2_0_1; };
@@ -587,9 +455,6 @@ self: super: {
587455 # https://github.com/alephcloud/hs-configuration-tools/issues/40
588456 configuration-tools = dontCheck super.configuration-tools;
589457
590− # Test suite wants to connect to $DISPLAY.
591− hsqml = dontCheck (addExtraLibrary (super.hsqml.override { qt5 = pkgs.qt5Full; }) pkgs.mesa);
592−
593458 # HsColour: Language/Unlambda.hs: hGetContents: invalid argument (invalid byte sequence)
594459 unlambda = dontHyperlinkSource super.unlambda;
595460
@@ -607,10 +472,6 @@ self: super: {
607472 preConfigure = "sed -i -e 's,time .* < 1.6,time >= 1.5,' -e 's,haddock-library >= 1.1 && < 1.3,haddock-library >= 1.1,' pandoc.cabal";
608473 });
609474
610− # Tests attempt to use NPM to install from the network into
611− # /homeless-shelter. Disabled.
612− purescript = dontCheck super.purescript;
613−
614475 # Requires bower-json >= 1.0.0.1 && < 1.1
615476 purescript_0_10_5 = super.purescript_0_10_5.overrideScope (self: super: {
616477 bower-json = self.bower-json_1_0_0_1;
@@ -636,50 +497,6 @@ self: super: {
636497 # https://github.com/anton-k/csound-expression-dynamic/issues/1
637498 csound-expression-dynamic = dontHaddock super.csound-expression-dynamic;
638499
639− # Hardcoded include path
640− poppler = overrideCabal super.poppler (drv: {
641− postPatch = ''
642− sed -i -e 's,glib/poppler.h,poppler.h,' poppler.cabal
643− sed -i -e 's,glib/poppler.h,poppler.h,' Graphics/UI/Gtk/Poppler/Structs.hsc
644− '';
645− });
646−
647− # Uses OpenGL in testing
648− caramia = dontCheck super.caramia;
649−
650− llvm-general-darwin = overrideCabal (super.llvm-general.override { llvm-config = pkgs.llvm_35; }) (drv: {
651− preConfigure = ''
652− sed -i llvm-general.cabal \
653− -e 's,extra-libraries: stdc++,extra-libraries: c++,'
654− '';
655− configureFlags = (drv.configureFlags or []) ++ ["--extra-include-dirs=${pkgs.libcxx}/include/c++/v1"];
656− librarySystemDepends = [ pkgs.libcxx ] ++ drv.librarySystemDepends or [];
657− });
658−
659− # Supports only 3.5 for now, https://github.com/bscarlet/llvm-general/issues/142
660− llvm-general =
661− if pkgs.stdenv.isDarwin
662− then self.llvm-general-darwin
663− else super.llvm-general.override { llvm-config = pkgs.llvm_35; };
664−
665− # Needs help finding LLVM.
666− spaceprobe = addBuildTool super.spaceprobe self.llvmPackages.llvm;
667−
668− # Tries to run GUI in tests
669− leksah = dontCheck (overrideCabal super.leksah (drv: {
670− executableSystemDepends = (drv.executableSystemDepends or []) ++ (with pkgs; [
671− gnome3.defaultIconTheme # Fix error: Icon 'window-close' not present in theme ...
672− wrapGAppsHook # Fix error: GLib-GIO-ERROR **: No GSettings schemas are installed on the system
673− gtk3 # Fix error: GLib-GIO-ERROR **: Settings schema 'org.gtk.Settings.FileChooser' is not installed
674− ]);
675− postPatch = (drv.postPatch or "") + ''
676− for f in src/IDE/Leksah.hs src/IDE/Utils/ServerConnection.hs
677− do
678− substituteInPlace "$f" --replace "\"leksah-server\"" "\"${self.leksah-server}/bin/leksah-server\""
679− done
680− '';
681− }));
682−
683500 # Packages of the diagrams ecosystem that require:
684501 # diagrams-core ==1.4.*
685502 # diagrams-lib ==1.4.*
@@ -715,9 +532,6 @@ self: super: {
715532 optparse-applicative = self.optparse-applicative_0_13_0_0;
716533 });
717534
718− # Patch to consider NIX_GHC just like xmonad does
719− dyre = appendPatch super.dyre ./patches/dyre-nix.patch;
720−
721535 # Test suite won't compile against tasty-hunit 0.9.x.
722536 zlib = dontCheck super.zlib;
723537
@@ -770,14 +584,6 @@ self: super: {
770584 # https://github.com/yesodweb/serversession/issues/1
771585 serversession = dontCheck super.serversession;
772586
773− yesod-bin = if pkgs.stdenv.isDarwin
774− then addBuildDepend super.yesod-bin pkgs.darwin.apple_sdk.frameworks.Cocoa
775− else super.yesod-bin;
776−
777− hmatrix = if pkgs.stdenv.isDarwin
778− then addBuildDepend super.hmatrix pkgs.darwin.apple_sdk.frameworks.Accelerate
779− else super.hmatrix;
780−
781587 # Hydra no longer allows building texlive packages.
782588 lhs2tex = dontDistribute super.lhs2tex;
783589
@@ -793,16 +599,6 @@ self: super: {
793599 # https://github.com/kazu-yamamoto/logger/issues/42
794600 logger = dontCheck super.logger;
795601
796− # https://github.com/edwinb/EpiVM/issues/13
797− # https://github.com/edwinb/EpiVM/issues/14
798− epic = addExtraLibraries (addBuildTool super.epic self.happy) [pkgs.boehmgc pkgs.gmp];
799−
800− # https://github.com/ekmett/wl-pprint-terminfo/issues/7
801− wl-pprint-terminfo = addExtraLibrary super.wl-pprint-terminfo pkgs.ncurses;
802−
803− # https://github.com/bos/pcap/issues/5
804− pcap = addExtraLibrary super.pcap pkgs.libpcap;
805−
806602 # https://github.com/qnikst/imagemagick/issues/34
807603 imagemagick = dontCheck super.imagemagick;
808604
@@ -892,40 +688,6 @@ self: super: {
892688 # https://github.com/bos/configurator/issues/22
893689 configurator = dontCheck super.configurator;
894690
895− # The cabal files for these libraries do not list the required system dependencies.
896− miniball = overrideCabal super.miniball (drv: {
897− librarySystemDepends = [ pkgs.miniball ];
898− });
899− SDL-image = overrideCabal super.SDL-image (drv: {
900− librarySystemDepends = [ pkgs.SDL pkgs.SDL_image ] ++ drv.librarySystemDepends or [];
901− });
902− SDL-ttf = overrideCabal super.SDL-ttf (drv: {
903− librarySystemDepends = [ pkgs.SDL pkgs.SDL_ttf ];
904− });
905− SDL-mixer = overrideCabal super.SDL-mixer (drv: {
906− librarySystemDepends = [ pkgs.SDL pkgs.SDL_mixer ];
907− });
908− SDL-gfx = overrideCabal super.SDL-gfx (drv: {
909− librarySystemDepends = [ pkgs.SDL pkgs.SDL_gfx ];
910− });
911− SDL-mpeg = overrideCabal super.SDL-mpeg (drv: {
912− configureFlags = (drv.configureFlags or []) ++ [
913− "--extra-lib-dirs=${pkgs.smpeg}/lib"
914− "--extra-include-dirs=${pkgs.smpeg}/include/smpeg"
915− ];
916− });
917−
918− # https://github.com/ivanperez-keera/hcwiid/pull/4
919− hcwiid = overrideCabal super.hcwiid (drv: {
920− configureFlags = (drv.configureFlags or []) ++ [
921− "--extra-lib-dirs=${pkgs.bluez.out}/lib"
922− "--extra-lib-dirs=${pkgs.cwiid}/lib"
923− "--extra-include-dirs=${pkgs.cwiid}/include"
924− "--extra-include-dirs=${pkgs.bluez.dev}/include"
925− ];
926− prePatch = '' sed -i -e "/Extra-Lib-Dirs/d" -e "/Include-Dirs/d" "hcwiid.cabal" '';
927− });
928−
929691 # https://github.com/basvandijk/concurrent-extra/issues/12
930692 concurrent-extra = dontCheck super.concurrent-extra;
931693
@@ -941,16 +703,6 @@ self: super: {
941703 # https://github.com/goldfirere/singletons/issues/122
942704 singletons = dontCheck super.singletons;
943705
944− # cabal2nix doesn't pick up some of the dependencies.
945− ginsu = let
946− g = addBuildDepend super.ginsu pkgs.perl;
947− g' = overrideCabal g (drv: {
948− executableSystemDepends = (drv.executableSystemDepends or []) ++ [
949− pkgs.ncurses
950− ];
951− });
952− in g';
953−
954706 # https://github.com/guillaume-nargeot/hpc-coveralls/issues/52
955707 hpc-coveralls = disableSharedExecutables super.hpc-coveralls;
956708
@@ -963,72 +715,20 @@ self: super: {
963715 # https://github.com/sol/hpack/issues/53
964716 hpack = dontCheck super.hpack;
965717
966− # Tests require `docker` command in PATH
967− # Tests require running docker service :on localhost
968− docker = dontCheck super.docker;
969−
970718 # https://github.com/deech/fltkhs/issues/16
971719 fltkhs = overrideCabal super.fltkhs (drv: {
972− libraryToolDepends = (drv.libraryToolDepends or []) ++ [pkgs.autoconf];
973− librarySystemDepends = (drv.librarySystemDepends or []) ++ [pkgs.fltk13 pkgs.mesa_noglu pkgs.libjpeg];
974720 broken = true; # linking fails because the build doesn't pull in the mesa libraries
975721 });
976722 fltkhs-fluid-examples = dontDistribute super.fltkhs-fluid-examples;
977723
978− # https://github.com/skogsbaer/hscurses/pull/26
979− hscurses = overrideCabal super.hscurses (drv: {
980− librarySystemDepends = (drv.librarySystemDepends or []) ++ [ pkgs.ncurses ];
981− });
982−
983724 # We get lots of strange compiler errors during the test suite run.
984725 jsaddle = dontCheck super.jsaddle;
985726
986− # Looks like Avahi provides the missing library
987− dnssd = super.dnssd.override { dns_sd = pkgs.avahi.override { withLibdnssdCompat = true; }; };
988−
989727 # Haste stuff
990728 haste-Cabal = markBroken (self.callPackage ../tools/haskell/haste/haste-Cabal.nix {});
991729 haste-cabal-install = markBroken (self.callPackage ../tools/haskell/haste/haste-cabal-install.nix { Cabal = self.haste-Cabal; });
992730 haste-compiler = markBroken (self.callPackage ../tools/haskell/haste/haste-compiler.nix { inherit overrideCabal; super-haste-compiler = super.haste-compiler; });
993731
994− # Ensure the necessary frameworks are propagatedBuildInputs on darwin
995− OpenGLRaw = overrideCabal super.OpenGLRaw (drv: {
996− librarySystemDepends =
997− pkgs.lib.optionals (!pkgs.stdenv.isDarwin) drv.librarySystemDepends;
998− libraryHaskellDepends = drv.libraryHaskellDepends
999− ++ pkgs.lib.optionals pkgs.stdenv.isDarwin
1000− [ pkgs.darwin.apple_sdk.frameworks.OpenGL ];
1001− preConfigure = pkgs.lib.optionalString pkgs.stdenv.isDarwin ''
1002− frameworkPaths=($(for i in $nativeBuildInputs; do if [ -d "$i"/Library/Frameworks ]; then echo "-F$i/Library/Frameworks"; fi done))
1003− frameworkPaths=$(IFS=, ; echo "''${frameworkPaths[@]}")
1004− configureFlags+=$(if [ -n "$frameworkPaths" ]; then echo -n "--ghc-options=-optl=$frameworkPaths"; fi)
1005− '';
1006− });
1007− GLURaw = overrideCabal super.GLURaw (drv: {
1008− librarySystemDepends =
1009− pkgs.lib.optionals (!pkgs.stdenv.isDarwin) drv.librarySystemDepends;
1010− libraryHaskellDepends = drv.libraryHaskellDepends
1011− ++ pkgs.lib.optionals pkgs.stdenv.isDarwin
1012− [ pkgs.darwin.apple_sdk.frameworks.OpenGL ];
1013− });
1014− bindings-GLFW = overrideCabal super.bindings-GLFW (drv: {
1015− doCheck = false; # requires an active X11 display
1016− librarySystemDepends =
1017− pkgs.lib.optionals (!pkgs.stdenv.isDarwin) drv.librarySystemDepends;
1018− libraryHaskellDepends = drv.libraryHaskellDepends
1019− ++ pkgs.lib.optionals pkgs.stdenv.isDarwin
1020− (with pkgs.darwin.apple_sdk.frameworks;
1021− [ AGL Cocoa OpenGL IOKit Kernel CoreVideo
1022− pkgs.darwin.CF ]);
1023− });
1024− OpenCL = overrideCabal super.OpenCL (drv: {
1025− librarySystemDepends =
1026− pkgs.lib.optionals (!pkgs.stdenv.isDarwin) drv.librarySystemDepends;
1027− libraryHaskellDepends = drv.libraryHaskellDepends
1028− ++ pkgs.lib.optionals pkgs.stdenv.isDarwin
1029− [ pkgs.darwin.apple_sdk.frameworks.OpenCL ];
1030− });
1031−
1032732 # tinc is a new build driver a la Stack that's not yet available from Hackage.
1033733 tinc = self.callPackage ../tools/haskell/tinc {};
1034734
@@ -1079,18 +779,6 @@ self: super: {
1079779 # Test suite fails a QuickCheck property.
1080780 optparse-applicative_0_13_0_0 = dontCheck super.optparse-applicative_0_13_0_0;
1081781
1082− # GLUT uses `dlopen` to link to freeglut, so we need to set the RUNPATH correctly for
1083− # it to find `libglut.so` from the nix store. We do this by patching GLUT.cabal to pkg-config
1084− # depend on freeglut, which provides GHC to necessary information to generate a correct RPATH.
1085− #
1086− # Note: Simply patching the dynamic library (.so) of the GLUT build will *not* work, since the
1087− # RPATH also needs to be propagated when using static linking. GHC automatically handles this for
1088− # us when we patch the cabal file (Link options will be recored in the ghc package registry).
1089− #
1090− # Additional note: nixpkgs' freeglut and macOS's OpenGL implementation do not cooperate,
1091− # so disable this on Darwin only
1092− ${if pkgs.stdenv.isDarwin then null else "GLUT"} = addPkgconfigDepend (appendPatch super.GLUT ./patches/GLUT.patch) pkgs.freeglut;
1093−
1094782 # https://github.com/Philonous/hs-stun/pull/1
1095783 # Remove if a version > 0.1.0.1 ever gets released.
1096784 stunclient = overrideCabal super.stunclient (drv: {
@@ -1099,15 +787,13 @@ self: super: {
1099787 '';
1100788 });
1101789
790+ # test suite cannot find its own "idris" binary
1102791 idris = overrideCabal super.idris (drv: {
1103792 # "idris" binary cannot find Idris library otherwise while building. After
1104793 # installing it's completely fine though. This seems like a bug in Idris
1105794 # that's related to builds with shared libraries enabled. It would be great
1106795 # if someone who knows a thing or two about Idris could look into this.
1107796 preBuild = "export LD_LIBRARY_PATH=$PWD/dist/build:$LD_LIBRARY_PATH";
1108− # https://github.com/idris-lang/Idris-dev/issues/2499
1109− librarySystemDepends = (drv.librarySystemDepends or []) ++ [pkgs.gmp];
1110− # test suite cannot find its own "idris" binary
1111797 doCheck = false;
1112798 });
1113799
@@ -1183,10 +869,6 @@ self: super: {
1183869 # note: the library is unmaintained, no upstream issue
1184870 dataenc = doJailbreak super.dataenc;
1185871
1186− libsystemd-journal = overrideCabal super.libsystemd-journal (old: {
1187− librarySystemDepends = old.librarySystemDepends or [] ++ [ pkgs.systemd ];
1188− });
1189−
1190872 # horribly outdated (X11 interface changed a lot)
1191873 sindre = markBroken super.sindre;
1192874