mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 15:03:28 +00:00
oama: ignore erroneous references on aarch64-darwin
The use of the Paths_ module causes erroneous references on aarch64-darwin (due to a lack of dead code elimination), so we can't use justStaticExecutables. See #318013.
This commit is contained in:
parent
ad36688c14
commit
6cc8c10fe0
@ -2,6 +2,7 @@
|
||||
haskell,
|
||||
haskellPackages,
|
||||
lib,
|
||||
stdenv,
|
||||
}:
|
||||
let
|
||||
inherit (haskell.lib.compose) overrideCabal justStaticExecutables;
|
||||
@ -25,5 +26,7 @@ let
|
||||
in
|
||||
lib.pipe raw-pkg [
|
||||
(overrideCabal overrides)
|
||||
justStaticExecutables
|
||||
# FIXME: eliminate all erroneous references on aarch64-darwin manually,
|
||||
# see https://github.com/NixOS/nixpkgs/issues/318013
|
||||
(if stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64 then lib.id else justStaticExecutables)
|
||||
]
|
||||
|
Loading…
Reference in New Issue
Block a user