about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2023-01-18 20:23:11 +0100
committersternenseemann <sternenseemann@systemli.org>2023-01-18 20:23:11 +0100
commit4bde58a2241c665336323ab847078498d72d9b8e (patch)
tree0c219b4a6898070837468cd18063d342cc90ee2e /pkgs/development/haskell-modules
parent75a1eb0c5b9a6ab6536e2b9a4ec3c3cff7adfadb (diff)
downloadnixlib-4bde58a2241c665336323ab847078498d72d9b8e.tar
nixlib-4bde58a2241c665336323ab847078498d72d9b8e.tar.gz
nixlib-4bde58a2241c665336323ab847078498d72d9b8e.tar.bz2
nixlib-4bde58a2241c665336323ab847078498d72d9b8e.tar.lz
nixlib-4bde58a2241c665336323ab847078498d72d9b8e.tar.xz
nixlib-4bde58a2241c665336323ab847078498d72d9b8e.tar.zst
nixlib-4bde58a2241c665336323ab847078498d72d9b8e.zip
haskellPackages.curl: fix build with curl >= 7.87
Diffstat (limited to 'pkgs/development/haskell-modules')
-rw-r--r--pkgs/development/haskell-modules/configuration-common.nix9
1 files changed, 9 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix
index 94d94f180c8c..ec9b70f4a0ce 100644
--- a/pkgs/development/haskell-modules/configuration-common.nix
+++ b/pkgs/development/haskell-modules/configuration-common.nix
@@ -474,6 +474,15 @@ self: super: {
   # https://github.com/kkardzis/curlhs/issues/6
   curlhs = dontCheck super.curlhs;
 
+  # curl 7.87.0 introduces a preprocessor typechecker of sorts which fails on
+  # incorrect usages of curl_easy_getopt and similar functions. Presumably
+  # because the wrappers in curlc.c don't use static values for the different
+  # arguments to curl_easy_getinfo, it complains and needs to be disabled.
+  # https://github.com/GaloisInc/curl/issues/28
+  curl = appendConfigureFlags [
+    "--ghc-option=-DCURL_DISABLE_TYPECHECK"
+  ] super.curl;
+
   # https://github.com/hvr/token-bucket/issues/3
   token-bucket = dontCheck super.token-bucket;