Skip to content

Commit 57afc59

Browse files
committedMar 9, 2019
haskellPackages.xattr: fix build with attr-2.4.48 (see ##53716)
1 parent bbfd2be commit 57afc59

File tree

2 files changed

+19
-0
lines changed

2 files changed

+19
-0
lines changed
 

‎pkgs/development/haskell-modules/configuration-common.nix

+3
Original file line numberDiff line numberDiff line change
@@ -1240,4 +1240,7 @@ self: super: {
12401240
};
12411241
}) (with self; [base-compat generic-lens microlens optparse-applicative ShellCheck]));
12421242

1243+
# Fix build with attr-2.4.48 (see #53716)
1244+
xattr = appendPatch super.xattr ./patches/xattr-fix-build.patch;
1245+
12431246
} // import ./configuration-tensorflow.nix {inherit pkgs haskellLib;} self super
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
diff --git a/System/Xattr.hsc b/System/Xattr.hsc
2+
index adaf9cb..9b49996 100644
3+
--- a/System/Xattr.hsc
4+
+++ b/System/Xattr.hsc
5+
@@ -45,11 +45,7 @@ module System.Xattr
6+
where
7+
8+
#include <sys/types.h>
9+
-#ifdef __APPLE__
10+
#include <sys/xattr.h>
11+
-#else
12+
-#include <attr/xattr.h>
13+
-#endif
14+
15+
import Data.Functor ((<$>))
16+
import Foreign.C

0 commit comments

Comments
 (0)
Please sign in to comment.