mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-13 13:15:30 +03:00
haskell.compiler.ghc*Binary: work around com.apple.provenance xattr
This commit is contained in:
parent
daef0a6ae8
commit
759f22430c
4 changed files with 36 additions and 0 deletions
|
@ -388,6 +388,15 @@ stdenv.mkDerivation {
|
||||||
# calls install-strip ...
|
# calls install-strip ...
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
# GHC tries to remove xattrs when installing to work around Gatekeeper
|
||||||
|
# (see https://gitlab.haskell.org/ghc/ghc/-/issues/17418). This step normally
|
||||||
|
# succeeds in nixpkgs because xattrs are not allowed in the store, but it
|
||||||
|
# can fail when a file has the `com.apple.provenance` xattr, and it can’t be
|
||||||
|
# modified (such as target of the symlink to `libiconv.dylib`).
|
||||||
|
# The `com.apple.provenance` xattr is a new feature of macOS as of macOS 13.
|
||||||
|
# See: https://eclecticlight.co/2023/03/13/ventura-has-changed-app-quarantine-with-a-new-xattr/
|
||||||
|
makeFlags = lib.optionals stdenv.buildPlatform.isDarwin [ "XATTR=/does-not-exist" ];
|
||||||
|
|
||||||
# Patch scripts to include runtime dependencies in $PATH.
|
# Patch scripts to include runtime dependencies in $PATH.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for i in "$out/bin/"*; do
|
for i in "$out/bin/"*; do
|
||||||
|
|
|
@ -178,6 +178,15 @@ stdenv.mkDerivation rec {
|
||||||
# calls install-strip ...
|
# calls install-strip ...
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
# GHC tries to remove xattrs when installing to work around Gatekeeper
|
||||||
|
# (see https://gitlab.haskell.org/ghc/ghc/-/issues/17418). This step normally
|
||||||
|
# succeeds in nixpkgs because xattrs are not allowed in the store, but it
|
||||||
|
# can fail when a file has the `com.apple.provenance` xattr, and it can’t be
|
||||||
|
# modified (such as target of the symlink to `libiconv.dylib`).
|
||||||
|
# The `com.apple.provenance` xattr is a new feature of macOS as of macOS 13.
|
||||||
|
# See: https://eclecticlight.co/2023/03/13/ventura-has-changed-app-quarantine-with-a-new-xattr/
|
||||||
|
makeFlags = lib.optionals stdenv.buildPlatform.isDarwin [ "XATTR=/does-not-exist" ];
|
||||||
|
|
||||||
# Patch scripts to include runtime dependencies in $PATH.
|
# Patch scripts to include runtime dependencies in $PATH.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for i in "$out/bin/"*; do
|
for i in "$out/bin/"*; do
|
||||||
|
|
|
@ -342,6 +342,15 @@ stdenv.mkDerivation {
|
||||||
# calls install-strip ...
|
# calls install-strip ...
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
# GHC tries to remove xattrs when installing to work around Gatekeeper
|
||||||
|
# (see https://gitlab.haskell.org/ghc/ghc/-/issues/17418). This step normally
|
||||||
|
# succeeds in nixpkgs because xattrs are not allowed in the store, but it
|
||||||
|
# can fail when a file has the `com.apple.provenance` xattr, and it can’t be
|
||||||
|
# modified (such as target of the symlink to `libiconv.dylib`).
|
||||||
|
# The `com.apple.provenance` xattr is a new feature of macOS as of macOS 13.
|
||||||
|
# See: https://eclecticlight.co/2023/03/13/ventura-has-changed-app-quarantine-with-a-new-xattr/
|
||||||
|
makeFlags = lib.optionals stdenv.buildPlatform.isDarwin [ "XATTR=/does-not-exist" ];
|
||||||
|
|
||||||
# Patch scripts to include runtime dependencies in $PATH.
|
# Patch scripts to include runtime dependencies in $PATH.
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
for i in "$out/bin/"*; do
|
for i in "$out/bin/"*; do
|
||||||
|
|
|
@ -326,6 +326,15 @@ stdenv.mkDerivation {
|
||||||
# calls install-strip ...
|
# calls install-strip ...
|
||||||
dontBuild = true;
|
dontBuild = true;
|
||||||
|
|
||||||
|
# GHC tries to remove xattrs when installing to work around Gatekeeper
|
||||||
|
# (see https://gitlab.haskell.org/ghc/ghc/-/issues/17418). This step normally
|
||||||
|
# succeeds in nixpkgs because xattrs are not allowed in the store, but it
|
||||||
|
# can fail when a file has the `com.apple.provenance` xattr, and it can’t be
|
||||||
|
# modified (such as target of the symlink to `libiconv.dylib`).
|
||||||
|
# The `com.apple.provenance` xattr is a new feature of macOS as of macOS 13.
|
||||||
|
# See: https://eclecticlight.co/2023/03/13/ventura-has-changed-app-quarantine-with-a-new-xattr/
|
||||||
|
makeFlags = lib.optionals stdenv.buildPlatform.isDarwin [ "XATTR=/does-not-exist" ];
|
||||||
|
|
||||||
# Patch scripts to include runtime dependencies in $PATH.
|
# Patch scripts to include runtime dependencies in $PATH.
|
||||||
postInstall =
|
postInstall =
|
||||||
''
|
''
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue