diff options
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-nix.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-nix.nix | 54 |
1 files changed, 13 insertions, 41 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index f1396fd0dd78a..ba5d70682a8c3 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -99,6 +99,19 @@ self: super: builtins.intersectAttrs super { ormolu = enableSeparateBinOutput super.ormolu; ghcid = enableSeparateBinOutput super.ghcid; + arbtt = overrideCabal (drv: { + # The test suite needs the packages's executables in $PATH to succeed. + preCheck = '' + for i in $PWD/dist/build/*; do + export PATH="$i:$PATH" + done + ''; + # One test uses timezone data + testToolDepends = drv.testToolDepends or [] ++ [ + pkgs.tzdata + ]; + }) super.arbtt; + hzk = overrideCabal (drv: { preConfigure = "sed -i -e /include-dirs/d hzk.cabal"; configureFlags = [ "--extra-include-dirs=${pkgs.zookeeper_mt}/include/zookeeper" ]; @@ -759,40 +772,9 @@ self: super: builtins.intersectAttrs super { }) (generateOptparseApplicativeCompletion "pnbackup" super.pinboard-notes-backup); - # set more accurate set of platforms instead of maintaining - # an ever growing list of platforms to exclude via unsupported-platforms - cpuid = overrideCabal { - platforms = pkgs.lib.platforms.x86; - } super.cpuid; - # Pass the correct libarchive into the package. streamly-archive = super.streamly-archive.override { archive = pkgs.libarchive; }; - # passes the -msse2 flag which only works on x86 platforms - hsignal = overrideCabal { - platforms = pkgs.lib.platforms.x86; - } super.hsignal; - - # uses x86 intrinsics - blake3 = overrideCabal { - platforms = pkgs.lib.platforms.x86; - } super.blake3; - - # uses x86 intrinsics, see also https://github.com/NixOS/nixpkgs/issues/122014 - crc32c = overrideCabal { - platforms = pkgs.lib.platforms.x86; - } super.crc32c; - - # uses x86 intrinsics - seqalign = overrideCabal { - platforms = pkgs.lib.platforms.x86; - } super.seqalign; - - # uses x86 intrinsics - geomancy = overrideCabal { - platforms = pkgs.lib.platforms.x86; - } super.geomancy; - hlint = overrideCabal (drv: { postInstall = '' install -Dm644 data/hlint.1 -t "$out/share/man/man1" @@ -811,16 +793,6 @@ self: super: builtins.intersectAttrs super { ] ++ (drv.librarySystemDepends or []); }) super.taglib; - # uses x86 assembler - inline-asm = overrideCabal { - platforms = pkgs.lib.platforms.x86; - } super.inline-asm; - - # uses x86 assembler in C bits - hw-prim-bits = overrideCabal { - platforms = pkgs.lib.platforms.x86; - } super.hw-prim-bits; - # random 1.2.0 has tests that indirectly depend on # itself causing an infinite recursion at evaluation # time |