diff options
author | lukasepple <git@lukasepple.de> | 2021-08-06 14:56:42 +0200 |
---|---|---|
committer | lukasepple <git@lukasepple.de> | 2021-08-06 14:56:42 +0200 |
commit | f754109ecfdf6a2921a06fd4885de1cb818b8bee (patch) | |
tree | 7fd982a8d93bd52c7d83670623e9a79744975fc8 /pkgs/development/haskell-modules/configuration-darwin.nix | |
parent | 0e0fbc6760179ce6834d1fd9a50af2c7a8b73533 (diff) | |
download | nixpkgs-f754109ecfdf6a2921a06fd4885de1cb818b8bee.tar nixpkgs-f754109ecfdf6a2921a06fd4885de1cb818b8bee.tar.gz nixpkgs-f754109ecfdf6a2921a06fd4885de1cb818b8bee.tar.bz2 nixpkgs-f754109ecfdf6a2921a06fd4885de1cb818b8bee.tar.lz nixpkgs-f754109ecfdf6a2921a06fd4885de1cb818b8bee.tar.xz nixpkgs-f754109ecfdf6a2921a06fd4885de1cb818b8bee.tar.zst nixpkgs-f754109ecfdf6a2921a06fd4885de1cb818b8bee.zip |
haskellPackages: fix build failures related to test main file casing
A few libraries published by https://github.com/typeclasses/ have the issue that they have a test suite with its Main module in hegehog.hs. On darwin GHC can't distinguish between Hedgehog.hs and hedgehog.hs due to the case insensitive file system and will raise an issue about this.
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-darwin.nix')
-rw-r--r-- | pkgs/development/haskell-modules/configuration-darwin.nix | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix index 9ce12f7ff9c..7ecc15fce71 100644 --- a/pkgs/development/haskell-modules/configuration-darwin.nix +++ b/pkgs/development/haskell-modules/configuration-darwin.nix @@ -229,4 +229,19 @@ self: super: { # Work around SDL_main.h redefining main to SDL_main SDL-ttf = appendPatch super.SDL-ttf ./patches/SDL-ttf-darwin-hsc.patch; + # Disable a bunch of test suites that fail because of darwin's case insensitive + # file system: When a test suite has a test suite file that has the same name + # as a module in scope, but in different case (e. g. hedgehog.hs and Hedgehog + # in scope), GHC will complain that the file name and module name differ (in + # the example hedgehog.hs would be Main). + # These failures can easily be fixed by upstream by renaming files, so we + # should create issues for them. + # https://github.com/typeclasses/aws-cloudfront-signed-cookies/issues/2 + aws-cloudfront-signed-cookies = dontCheck super.aws-cloudfront-signed-cookies; + # https://github.com/typeclasses/assoc-list/issues/2 + assoc-list = dontCheck super.assoc-list; + assoc-listlike = dontCheck super.assoc-listlike; + # https://github.com/typeclasses/dsv/issues/1 + dsv = dontCheck super.dsv; + } |