haskellPackages.lukko: fix ofd locking on 32bit Linux platforms (#372218)

authored by maralorn and committed by GitHub b0f9842a f9aff72b

+10
+10
pkgs/development/haskell-modules/configuration-common.nix
··· 351 ghc-datasize = disableLibraryProfiling super.ghc-datasize; 352 ghc-vis = disableLibraryProfiling super.ghc-vis; 353 354 # Fixes compilation for basement on i686 for GHC >= 9.4 355 # https://github.com/haskell-foundation/foundation/pull/573 356 # Patch would not work for GHC >= 9.2 where it breaks compilation on x86_64
··· 351 ghc-datasize = disableLibraryProfiling super.ghc-datasize; 352 ghc-vis = disableLibraryProfiling super.ghc-vis; 353 354 + # Fix 32bit struct being used for 64bit syscall on 32bit platforms 355 + # https://github.com/haskellari/lukko/issues/15 356 + lukko = appendPatches [ 357 + (fetchpatch { 358 + name = "lukko-ofd-locking-32bit.patch"; 359 + url = "https://github.com/haskellari/lukko/pull/32/commits/4e69ffad996c3771f50017b97375af249dd17c85.patch"; 360 + sha256 = "0n8vig48irjz0jckc20dzc23k16fl5hznrc0a81y02ms72msfwi1"; 361 + }) 362 + ] super.lukko; 363 + 364 # Fixes compilation for basement on i686 for GHC >= 9.4 365 # https://github.com/haskell-foundation/foundation/pull/573 366 # Patch would not work for GHC >= 9.2 where it breaks compilation on x86_64