diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index b95f1c9b658ce..06a838e5b5756 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -323,6 +323,16 @@ self: super: { ghc-datasize = disableLibraryProfiling super.ghc-datasize; ghc-vis = disableLibraryProfiling super.ghc-vis; + # Fix 32bit struct being used for 64bit syscall on 32bit platforms + # https://github.com/haskellari/lukko/issues/15 + lukko = appendPatches [ + (fetchpatch { + name = "lukko-ofd-locking-32bit.patch"; + url = "https://github.com/haskellari/lukko/pull/32/commits/4e69ffad996c3771f50017b97375af249dd17c85.patch"; + sha256 = "0n8vig48irjz0jckc20dzc23k16fl5hznrc0a81y02ms72msfwi1"; + }) + ] super.lukko; + # Fixes compilation for basement on i686 for GHC >= 9.4 # https://github.com/haskell-foundation/foundation/pull/573 # Patch would not work for GHC >= 9.2 where it breaks compilation on x86_64