about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorWill Dietz <w@wdtz.org>2018-07-11 22:32:30 -0500
committerWill Dietz <w@wdtz.org>2018-07-12 11:04:25 -0500
commitba602b0a5f41eeddfd83ae6fb37c0e5c0b72d791 (patch)
tree5fcee826ff5fa029659c7b874b8b393a8d17d0c3 /pkgs/development/haskell-modules
parent78381de8598c3d850749371d7582201ee898a0c3 (diff)
haskell-{unix-time,prettyprinter}: dontCheck on musl
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 7251ace30a71c..c7e7cd4f4c3ff 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -1095,4 +1095,9 @@ self: super: {
   stylish-cabal = super.stylish-cabal.override { hspec = self.hspec_2_4_8; hspec-core = self.hspec-core_2_4_8; };
   hspec_2_4_8 = super.hspec_2_4_8.override { hspec-core = self.hspec-core_2_4_8; hspec-discover = self.hspec-discover_2_4_8; };
 
+  # musl fixes
+  # dontCheck: use of non-standard strptime "%s" which musl doesn't support; only used in test
+  unix-time = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.unix-time else super.unix-time;
+  # dontCheck: printf double rounding behavior
+  prettyprinter = if pkgs.stdenv.hostPlatform.isMusl then dontCheck super.prettyprinter else super.prettyprinter;
 }