From 58b8532158c7e4757a01b5dddb498bb0b1cb4c96 Mon Sep 17 00:00:00 2001 From: sternenseemann Date: Tue, 22 Nov 2022 18:17:47 +0100 Subject: [PATCH] haskellPackages.OrderedBits: restrict to x86 platforms Suggested in https://github.com/NixOS/nixpkgs/pull/202240. --- .../haskell-modules/configuration-hackage2nix/main.yaml | 1 + pkgs/development/haskell-modules/hackage-packages.nix | 1 + 2 files changed, 2 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml index 8e9df640f283..0013b03fba16 100644 --- a/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml +++ b/pkgs/development/haskell-modules/configuration-hackage2nix/main.yaml @@ -584,6 +584,7 @@ supported-platforms: linux-namespaces: [ platforms.linux ] lxc: [ platforms.linux ] midi-alsa: [ platforms.linux ] + OrderedBits: [ platforms.x86 ] # lacks implementations for non-x86: https://github.com/choener/OrderedBits/blob/401cbbe933b1635aa33e8e9b29a4a570b0a8f044/lib/Data/Bits/Ordered.hs#L316 password: [ platforms.x86 ] # uses scrypt, which requries x86 password-instances: [ platforms.x86 ] # uses scrypt, which requries x86 reactivity: [ platforms.windows ] diff --git a/pkgs/development/haskell-modules/hackage-packages.nix b/pkgs/development/haskell-modules/hackage-packages.nix index c59b9a07e33f..524208077119 100644 --- a/pkgs/development/haskell-modules/hackage-packages.nix +++ b/pkgs/development/haskell-modules/hackage-packages.nix @@ -15824,6 +15824,7 @@ self: { benchmarkHaskellDepends = [ base criterion ]; description = "Efficient ordered (by popcount) enumeration of bits"; license = lib.licenses.bsd3; + platforms = lib.platforms.x86; }) {}; "Ordinals" = callPackage