From 978694162abfbad459b6ce3dc88fd38aa0ee06c3 Mon Sep 17 00:00:00 2001 From: MaxHearnden Date: Mon, 17 Apr 2023 23:40:26 +0100 Subject: [PATCH] haskellPackages.wiringPi: Add wiringpi as a dependency on aarch --- pkgs/development/haskell-modules/configuration-arm.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/haskell-modules/configuration-arm.nix b/pkgs/development/haskell-modules/configuration-arm.nix index 9b7811417d9f..54aa44efb488 100644 --- a/pkgs/development/haskell-modules/configuration-arm.nix +++ b/pkgs/development/haskell-modules/configuration-arm.nix @@ -38,6 +38,11 @@ self: super: { happy = dontCheck super.happy; happy_1_19_12 = doDistribute (dontCheck super.happy_1_19_12); + # add arm specific library + wiringPi = overrideCabal ({librarySystemDepends ? [], ...}: { + librarySystemDepends = librarySystemDepends ++ [pkgs.wiringpi]; + }) super.wiringPi; + } // lib.optionalAttrs pkgs.stdenv.hostPlatform.isAarch64 { # AARCH64-SPECIFIC OVERRIDES