diff --git a/pkgs/development/haskell-modules/configuration-common.nix b/pkgs/development/haskell-modules/configuration-common.nix index 3242a4446d4..5ee31d3c87f 100644 --- a/pkgs/development/haskell-modules/configuration-common.nix +++ b/pkgs/development/haskell-modules/configuration-common.nix @@ -1237,4 +1237,7 @@ self: super: { }; }) (with self; [base-compat generic-lens microlens optparse-applicative ShellCheck])); + # Fix build with attr-2.4.48 (see #53716) + xattr = appendPatch super.xattr ./patches/xattr-fix-build.patch; + } // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super diff --git a/pkgs/development/haskell-modules/patches/xattr-fix-build.patch b/pkgs/development/haskell-modules/patches/xattr-fix-build.patch new file mode 100644 index 00000000000..4b4f370b17f --- /dev/null +++ b/pkgs/development/haskell-modules/patches/xattr-fix-build.patch @@ -0,0 +1,16 @@ +diff --git a/System/Xattr.hsc b/System/Xattr.hsc +index adaf9cb..9b49996 100644 +--- a/System/Xattr.hsc ++++ b/System/Xattr.hsc +@@ -45,11 +45,7 @@ module System.Xattr + where + + #include +-#ifdef __APPLE__ + #include +-#else +-#include +-#endif + + import Data.Functor ((<$>)) + import Foreign.C