From cbaa1c8a5985d678bfc7a27885f0b85fa42e1647 Mon Sep 17 00:00:00 2001 From: sternenseemann <0rpkxez4ksa01gb3typccl0i@systemli.org> Date: Tue, 18 May 2021 17:48:31 +0200 Subject: [PATCH] haskellPackages.hw-prim-bits: restrict to x86 Requires x86 assembler, so no luck building it anywhere else. --- pkgs/development/haskell-modules/configuration-nix.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-nix.nix b/pkgs/development/haskell-modules/configuration-nix.nix index 978dd86a9458..5c9c74310221 100644 --- a/pkgs/development/haskell-modules/configuration-nix.nix +++ b/pkgs/development/haskell-modules/configuration-nix.nix @@ -798,4 +798,9 @@ self: super: builtins.intersectAttrs super { inline-asm = overrideCabal super.inline-asm { platforms = pkgs.lib.platforms.isx86; }; + + # uses x86 assembler in C bits + hw-prim-bits = overrideCabal super.hw-prim-bits { + platforms = pkgs.lib.platforms.x86; + }; }