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:
sternenseemann 2024-08-30 12:13:50 +02:00
parent ad36688c14
commit 6cc8c10fe0

View File

@ -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)
]