about summary refs log tree commit diff
path: root/pkgs/development/haskell-modules/configuration-darwin.nix
diff options
context:
space:
mode:
authorLinschlager <linus4123@gmail.com>2023-11-25 19:14:23 +0100
committerLinschlager <linus4123@gmail.com>2023-11-26 17:28:52 +0100
commit0a091fccccde0d481063e972ec0af5f4b7a2e700 (patch)
tree0426cb6a691f686c0ee7916f1163c1097547f1ec /pkgs/development/haskell-modules/configuration-darwin.nix
parent911ce27f7ec3742e396928da3ccb25c17566bdfe (diff)
haskellPackages.hidapi: fix darwin build
Diffstat (limited to 'pkgs/development/haskell-modules/configuration-darwin.nix')
-rw-r--r--pkgs/development/haskell-modules/configuration-darwin.nix8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkgs/development/haskell-modules/configuration-darwin.nix b/pkgs/development/haskell-modules/configuration-darwin.nix
index 2dbfac30da5a8..e306884cf4fdc 100644
--- a/pkgs/development/haskell-modules/configuration-darwin.nix
+++ b/pkgs/development/haskell-modules/configuration-darwin.nix
@@ -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: {