summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2020-07-05 04:20:00 -0500
committerMario Rodas <marsam@users.noreply.github.com>2020-07-05 04:20:00 -0500
commitf25f7eb7f3388e4998293e88142148aada9ae3f8 (patch)
tree42705d19550b5ce08f4cb98933eb626cfac928d4 /pkgs/development/haskell-modules
parentb1f5e293cb8a807af4b6bbe7c8baf7715898f994 (diff)
downloadnixpkgs-f25f7eb7f3388e4998293e88142148aada9ae3f8.tar
nixpkgs-f25f7eb7f3388e4998293e88142148aada9ae3f8.tar.gz
nixpkgs-f25f7eb7f3388e4998293e88142148aada9ae3f8.tar.bz2
nixpkgs-f25f7eb7f3388e4998293e88142148aada9ae3f8.tar.lz
nixpkgs-f25f7eb7f3388e4998293e88142148aada9ae3f8.tar.xz
nixpkgs-f25f7eb7f3388e4998293e88142148aada9ae3f8.tar.zst
nixpkgs-f25f7eb7f3388e4998293e88142148aada9ae3f8.zip
haskellPackages.mockery: fix build on darwin
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix3
1 files changed, 3 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 19f7685f786..5a5204c3db3 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -312,6 +312,9 @@ self: super: {
   memcache = dontCheck super.memcache;
   metrics = dontCheck super.metrics;
   milena = dontCheck super.milena;
+  mockery = if pkgs.stdenv.isDarwin
+    then overrideCabal super.mockery (drv: { preCheck = "export TRAVIS=true"; }) # darwin doesn't have sub-second resolution https://github.com/hspec/mockery/issues/11
+    else super.mockery;
   modular-arithmetic = dontCheck super.modular-arithmetic; # tests require a very old Glob (0.7.*)
   nats-queue = dontCheck super.nats-queue;
   netpbm = dontCheck super.netpbm;