about summary refs log tree commit diff
path: root/pkgs
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-05 18:39:33 +0200
committersternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-06-05 18:39:33 +0200
commite4d21886f43a8092331bb229601c3d624d3b1455 (patch)
tree4a1df503293b8ade6ef29302d8ec101505dc3c0f /pkgs
parent776e8fd668560745d20bffc765a94400ef4a523b (diff)
downloadnixlib-e4d21886f43a8092331bb229601c3d624d3b1455.tar
nixlib-e4d21886f43a8092331bb229601c3d624d3b1455.tar.gz
nixlib-e4d21886f43a8092331bb229601c3d624d3b1455.tar.bz2
nixlib-e4d21886f43a8092331bb229601c3d624d3b1455.tar.lz
nixlib-e4d21886f43a8092331bb229601c3d624d3b1455.tar.xz
nixlib-e4d21886f43a8092331bb229601c3d624d3b1455.tar.zst
nixlib-e4d21886f43a8092331bb229601c3d624d3b1455.zip
haskellPackages.tophat: unbreak
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix7
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index 643e9edc627b..538d5381a96a 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -826,4 +826,11 @@ self: super: builtins.intersectAttrs super {
 
   # test suite needs local redis daemon
   nri-redis = dontCheck super.nri-redis;
+
+  # Make tophat find itself for _compiling_ its test suite
+  tophat = overrideCabal super.tophat (drv: {
+    postPatch = ''
+      sed -i 's|"tophat"|"./dist/build/tophat/tophat"|' app-test-bin/*.hs
+    '' + (drv.postPatch or "");
+  });
 }