summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsternenseemann <sternenseemann@systemli.org>2024-06-07 15:12:54 +0200
committersternenseemann <sternenseemann@systemli.org>2024-06-08 17:24:00 +0200
commit1a818e315050ced2f0ddf022ecff2c8c1bed652a (patch)
tree13af9791fb3a7c91e490593f55652cdc730a5f3a
parentd785f1185eb41a659cd04ab971959eb853562371 (diff)
nvfetcher: prevent incorrect references on aarch64-darwin
-rw-r--r--pkgs/development/haskell-modules/configuration-nix.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix
index 87fcdd9f4f4d..706bd2dfecf2 100644
--- a/pkgs/development/haskell-modules/configuration-nix.nix
+++ b/pkgs/development/haskell-modules/configuration-nix.nix
@@ -1073,6 +1073,14 @@ self: super: builtins.intersectAttrs super {
pkgs.nix-prefetch-docker
]
}"
+ ''
+ # Prevent erroneous references to other libraries that use Paths_ modules
+ # on aarch64-darwin. Note that references to the data outputs are not removed.
+ + lib.optionalString (with pkgs.stdenv; hostPlatform.isDarwin && hostPlatform.isAarch64) ''
+ remove-references-to -t "${self.shake.out}" "$out/bin/.nvfetcher-wrapped"
+ remove-references-to -t "${self.js-jquery.out}" "$out/bin/.nvfetcher-wrapped"
+ remove-references-to -t "${self.js-flot.out}" "$out/bin/.nvfetcher-wrapped"
+ remove-references-to -t "${self.js-dgtable.out}" "$out/bin/.nvfetcher-wrapped"
'';
}) super.nvfetcher);