summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-common.nix
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/configuration-common.nix
parent78381de8598c3d850749371d7582201ee898a0c3 (diff)
downloadnixlib-ba602b0a5f41eeddfd83ae6fb37c0e5c0b72d791.tar
nixlib-ba602b0a5f41eeddfd83ae6fb37c0e5c0b72d791.tar.gz
nixlib-ba602b0a5f41eeddfd83ae6fb37c0e5c0b72d791.tar.bz2
nixlib-ba602b0a5f41eeddfd83ae6fb37c0e5c0b72d791.tar.lz
nixlib-ba602b0a5f41eeddfd83ae6fb37c0e5c0b72d791.tar.xz
nixlib-ba602b0a5f41eeddfd83ae6fb37c0e5c0b72d791.tar.zst
nixlib-ba602b0a5f41eeddfd83ae6fb37c0e5c0b72d791.zip
haskell-{unix-time,prettyprinter}: dontCheck on musl
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-common.nix')
-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 7251ace30a71..c7e7cd4f4c3f 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;
 }