haskellPackages.hidapi: fix darwin build

This commit is contained in:
Linschlager 2023-11-25 19:14:23 +01:00
parent 911ce27f7e
commit 0a091fcccc
4 changed files with 8 additions and 4 deletions

View file

@ -123,6 +123,14 @@ self: super: ({
__darwinAllowLocalNetworking = true;
});
hidapi =
addExtraLibraries [
darwin.apple_sdk.frameworks.AppKit
darwin.apple_sdk.frameworks.IOKit
darwin.apple_sdk.frameworks.CoreFoundation
]
(super.hidapi.override { systemd = null; });
hmatrix = addBuildDepend darwin.apple_sdk.frameworks.Accelerate super.hmatrix;
blas-hs = overrideCabal (drv: {

View file

@ -640,7 +640,6 @@ unsupported-platforms:
haskell-snake: [ platforms.darwin ]
hcwiid: [ platforms.darwin ]
HDRUtils: [ platforms.darwin ]
hidapi: [ platforms.darwin ]
hinotify-bytestring: [ platforms.darwin ]
honk: [ platforms.darwin ]
HSoM: [ platforms.darwin ]

View file

@ -625,8 +625,6 @@ self: super: builtins.intersectAttrs super {
# https://github.com/haskell-fswatch/hfsnotify/issues/62
fsnotify = dontCheck super.fsnotify;
hidapi = addExtraLibrary pkgs.udev super.hidapi;
hs-GeoIP = super.hs-GeoIP.override { GeoIP = pkgs.geoipWithDatabase; };
discount = super.discount.override { markdown = pkgs.discount; };

View file

@ -146371,7 +146371,6 @@ self: {
librarySystemDepends = [ systemd ];
description = "Haskell bindings to HIDAPI";
license = lib.licenses.mit;
badPlatforms = lib.platforms.darwin;
}) {inherit (pkgs) systemd;};
"hidden-char" = callPackage