From 8c6c17b84e8f78f496d25ff39caa7e43875b70ad Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Fri, 7 May 2021 12:35:42 +0200 Subject: [PATCH] haskellPackages.cpuid: set accurate meta.platform value --- pkgs/development/haskell-modules/configuration-nix.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 501d1572737b..bfb213684ca9 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -872,4 +872,10 @@ self: super: builtins.intersectAttrs super { pkgs.darwin.apple_sdk.frameworks.IOKit ] ++ (drv.librarySystemDepends or []); }); + + # set more accurate set of platforms instead of maintaining + # an ever growing list of platforms to exclude via unsupported-platforms + cpuid = overrideCabal super.cpuid { + platforms = pkgs.lib.platforms.x86; + }; }