git.iko.soy/typeable/nixpkgs
on master help sign in
Revert "haskell: add nix-specific fixes for various packages in stackage"

This reverts commit 17c5ca9018619d819c48e25add78f47d7d575611. This commit causes an evaluation error due to infinite recursion, which can be tested by running: ``` $ nix-env -f . -qa \* --meta --xml --drv-path --show-trace > /dev/null ```

commitfd0e0cdc761d1edb0f02b0f5d2d04f557d06711b authorThomas Tuegel <ttuegel@mailbox.org> dateSat 18 Feb 2017, 12:48 (10 years ago) parent32560d2
2 files changed+26−61
pkgs/development/haskell-modules/configuration-common.nix+24−3 pkgs/development/haskell-modules/configuration-nix.nix+2−58
pkgs/development/haskell-modules/configuration-common.nix+24−3
@@ -41,8 +41,6 @@ self: super: {
4141 nanospec = dontCheck super.nanospec;
4242 options = dontCheck super.options;
4343 statistics = dontCheck super.statistics;
44−
45− # segfault due to missing return: https://github.com/haskell/c2hs/pull/184
4644 c2hs = dontCheck super.c2hs;
4745
4846 # This test keeps being aborted because it runs too quietly for too long
@@ -230,6 +228,7 @@ self: super: {
230228 wai-middleware-hmac = dontCheck super.wai-middleware-hmac;
231229 xkbcommon = dontCheck super.xkbcommon;
232230 xmlgen = dontCheck super.xmlgen;
231+ hapistrano = dontCheck super.hapistrano;
233232 HerbiePlugin = dontCheck super.HerbiePlugin;
234233 wai-cors = dontCheck super.wai-cors;
235234
@@ -279,6 +278,7 @@ self: super: {
279278 dotfs = dontCheck super.dotfs; # http://hydra.cryp.to/build/498599/log/raw
280279 DRBG = dontCheck super.DRBG; # http://hydra.cryp.to/build/498245/nixlog/1/raw
281280 ed25519 = dontCheck super.ed25519;
281+ either-unwrap = dontCheck super.either-unwrap; # http://hydra.cryp.to/build/498782/log/raw
282282 etcd = dontCheck super.etcd;
283283 fb = dontCheck super.fb; # needs credentials for Facebook
284284 fptest = dontCheck super.fptest; # http://hydra.cryp.to/build/499124/log/raw
@@ -307,6 +307,7 @@ self: super: {
307307 hi = dontCheck super.hi;
308308 hierarchical-clustering = dontCheck super.hierarchical-clustering;
309309 hmatrix-tests = dontCheck super.hmatrix-tests;
310+ hPDB-examples = dontCheck super.hPDB-examples;
310311 hquery = dontCheck super.hquery;
311312 hs2048 = dontCheck super.hs2048;
312313 hsbencher = dontCheck super.hsbencher;
@@ -426,6 +427,9 @@ self: super: {
426427 # https://github.com/NixOS/nixpkgs/issues/6350
427428 paypal-adaptive-hoops = overrideCabal super.paypal-adaptive-hoops (drv: { testTarget = "local"; });
428429
430+ # https://github.com/afcowie/http-streams/issues/80
431+ http-streams = dontCheck super.http-streams;
432+
429433 # https://github.com/vincenthz/hs-asn1/issues/12
430434 asn1-encoding = dontCheck super.asn1-encoding;
431435
@@ -447,6 +451,9 @@ self: super: {
447451 apiary-session = dontCheck super.apiary-session;
448452 apiary-websockets = dontCheck super.apiary-websockets;
449453
454+ # https://github.com/alephcloud/hs-configuration-tools/issues/40
455+ configuration-tools = dontCheck super.configuration-tools;
456+
450457 # HsColour: Language/Unlambda.hs: hGetContents: invalid argument (invalid byte sequence)
451458 unlambda = dontHyperlinkSource super.unlambda;
452459
@@ -688,6 +695,13 @@ self: super: {
688695 cairo = addBuildTool super.cairo self.gtk2hs-buildtools;
689696 pango = disableHardening (addBuildTool super.pango self.gtk2hs-buildtools) ["fortify"];
690697
698+ # Fix tests which would otherwise fail with "Couldn't launch intero process."
699+ intero = overrideCabal super.intero (drv: {
700+ postPatch = (drv.postPatch or "") + ''
701+ substituteInPlace src/test/Main.hs --replace "\"intero\"" "\"$PWD/dist/build/intero/intero\""
702+ '';
703+ });
704+
691705 # https://github.com/commercialhaskell/stack/issues/3001
692706 stack = doJailbreak super.stack;
693707
@@ -722,7 +736,14 @@ self: super: {
722736 });
723737
724738 # test suite cannot find its own "idris" binary
725− idris = dontCheck super.idris;
739+ idris = overrideCabal super.idris (drv: {
740+ # "idris" binary cannot find Idris library otherwise while building. After
741+ # installing it's completely fine though. This seems like a bug in Idris
742+ # that's related to builds with shared libraries enabled. It would be great
743+ # if someone who knows a thing or two about Idris could look into this.
744+ preBuild = "export LD_LIBRARY_PATH=$PWD/dist/build:$LD_LIBRARY_PATH";
745+ doCheck = false;
746+ });
726747
727748 # https://github.com/bos/math-functions/issues/25
728749 math-functions = dontCheck super.math-functions;
pkgs/development/haskell-modules/configuration-nix.nix+2−58
@@ -167,13 +167,6 @@ self: super: builtins.intersectAttrs super {
167167 http-client-tls = dontCheck super.http-client-tls;
168168 http-conduit = dontCheck super.http-conduit;
169169 transient-universe = dontCheck super.transient-universe;
170− typed-process = dontCheck super.typed-process;
171− js-jquery = dontCheck super.js-jquery;
172− hPDB-examples = dontCheck super.hPDB-examples;
173− configuration-tools = dontCheck super.configuration-tools; # https://github.com/alephcloud/hs-configuration-tools/issues/40
174− tcp-streams = dontCheck super.tcp-streams;
175− holy-project = dontCheck super.holy-project;
176− mustache = dontCheck super.mustache;
177170
178171 # Tries to mess with extended POSIX attributes, but can't in our chroot environment.
179172 xattr = dontCheck super.xattr;
@@ -385,62 +378,13 @@ self: super: builtins.intersectAttrs super {
385378 idris = overrideCabal super.idris (drv: {
386379 # https://github.com/idris-lang/Idris-dev/issues/2499
387380 librarySystemDepends = (drv.librarySystemDepends or []) ++ [pkgs.gmp];
388−
389− # tests and build run executable, so need to set LD_LIBRARY_PATH
390− preBuild = ''
391− export LD_LIBRARY_PATH="$PWD/dist/build:$LD_LIBRARY_PATH"
392− '';
393381 });
394382
395383 libsystemd-journal = overrideCabal super.libsystemd-journal (old: {
396384 librarySystemDepends = old.librarySystemDepends or [] ++ [ pkgs.systemd ];
397385 });
398386
399− # does not specify tests in cabal file, instead has custom runTest cabal hook,
400− # so cabal2nix will not detect test dependencies.
401− either-unwrap = overrideCabal super.either-unwrap (drv: {
402− testHaskellDepends = (drv.testHaskellDepends or []) ++ [ self.test-framework self.test-framework-hunit ];
403− });
404−
405− hidapi = addExtraLibrary super.hidapi pkgs.libudev;
406−
407− hs-GeoIP = super.hs-GeoIP.override { GeoIP = pkgs.geoipWithDatabase; };
408−
409− discount = super.discount.override { markdown = pkgs.discount; };
410−
411− # tests require working stack installation with all-cabal-hashes cloned in $HOME
412− stackage-curator = dontCheck super.stackage-curator;
413−
414− # hardcodes /usr/bin/tr: https://github.com/snapframework/io-streams/pull/59
415− io-streams = enableCabalFlag super.io-streams "NoInteractiveTests";
416−
417− # requires autotools to build
418− secp256k1 = addBuildTools super.secp256k1 [ pkgs.autoconf pkgs.automake pkgs.libtool ];
419−
420− # tests require git
421− hapistrano = addBuildTool super.hapistrano pkgs.git;
422−
423− # requires webkitgtk API version 3 (webkitgtk 2.4 is the latest webkit supporting that version)
424− gi-javascriptcore = super.gi-javascriptcore.override { webkitgtk = pkgs.webkitgtk24x; };
425− gi-webkit = super.gi-webkit.override { webkit = pkgs.webkitgtk24x; };
426−
427− # requires valid, writeable $HOME
428− hatex-guide = overrideCabal super.hatex-guide (drv: {
429− preConfigure = ''
430− ${drv.preConfigure or ""}
431− export HOME=$PWD
432− '';
433− });
434−
435− # Fails to link against with newer gsl versions because a deprecrated function
436− # was removed
437− hmatrix-gsl = super.hmatrix-gsl.override { gsl = pkgs.gsl_1; };
387+ # Needs network in tests.
388+ typed-process = dontCheck super.typed-process;
438389
439− # tests run executable, relying on PATH
440− # without this, tests fail with "Couldn't launch intero process"
441− intero = overrideCabal super.intero (drv: {
442− preCheck = ''
443− export PATH="$PWD/dist/build/intero:$PATH"
444− '';
445− });
446390}