summary refs log tree commit diff
path: root/pkgs/development/compilers/ghc
diff options
context:
space:
mode:
authorsternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org>2021-08-28 14:29:24 +0200
committersterni <sternenseemann@systemli.org>2021-08-28 16:17:21 +0200
commitb756d62d8d8a8b7644a7369647ecf6c150b2ff33 (patch)
treec4e84658218079f467619540a34a00570a4f5daf /pkgs/development/compilers/ghc
parent75e78ebaecf9cec27503f31669e9bef408eb6944 (diff)
downloadnixpkgs-b756d62d8d8a8b7644a7369647ecf6c150b2ff33.tar
nixpkgs-b756d62d8d8a8b7644a7369647ecf6c150b2ff33.tar.gz
nixpkgs-b756d62d8d8a8b7644a7369647ecf6c150b2ff33.tar.bz2
nixpkgs-b756d62d8d8a8b7644a7369647ecf6c150b2ff33.tar.lz
nixpkgs-b756d62d8d8a8b7644a7369647ecf6c150b2ff33.tar.xz
nixpkgs-b756d62d8d8a8b7644a7369647ecf6c150b2ff33.tar.zst
nixpkgs-b756d62d8d8a8b7644a7369647ecf6c150b2ff33.zip
haskell.compiler.ghcHEAD: provide xattr on darwin
This darwin specific tool is required for GHC on master
nowadays. Unfortunately the XATTR environment variable only works in the
GHC 8.10 series.
Diffstat (limited to 'pkgs/development/compilers/ghc')
-rw-r--r--pkgs/development/compilers/ghc/head.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/compilers/ghc/head.nix b/pkgs/development/compilers/ghc/head.nix
index 6eefc067d6e..d39adcaab54 100644
--- a/pkgs/development/compilers/ghc/head.nix
+++ b/pkgs/development/compilers/ghc/head.nix
@@ -2,7 +2,7 @@
 
 # build-tools
 , bootPkgs
-, autoconf, autoreconfHook, automake, coreutils, fetchgit, perl, python3, m4, sphinx
+, autoconf, autoreconfHook, automake, coreutils, fetchgit, perl, python3, m4, sphinx, xattr
 , bash
 
 , libiconv ? null, ncurses
@@ -255,6 +255,10 @@ stdenv.mkDerivation (rec {
     ghc bootPkgs.alex bootPkgs.happy bootPkgs.hscolour
   ] ++ lib.optionals enableDocs [
     sphinx
+  ] ++ lib.optionals stdenv.isDarwin [
+    # TODO(@sternenseemann): use XATTR env var once we have
+    # https://gitlab.haskell.org/ghc/ghc/-/merge_requests/6447
+    xattr
   ];
 
   # For building runtime libs