From aad3e911caca386d3d0aa1f093c236cc0826a6f0 Mon Sep 17 00:00:00 2001 From: Sirio Balmelli Date: Fri, 13 May 2022 06:53:41 +0200 Subject: [PATCH] libbtbb: fix Darwin build Signed-off-by: Sirio Balmelli --- pkgs/development/libraries/libbtbb/default.nix | 4 ++-- pkgs/top-level/all-packages.nix | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/pkgs/development/libraries/libbtbb/default.nix b/pkgs/development/libraries/libbtbb/default.nix index 15047f6e8f2f..2e2b95c2d8c7 100644 --- a/pkgs/development/libraries/libbtbb/default.nix +++ b/pkgs/development/libraries/libbtbb/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchFromGitHub, cmake }: +{ stdenv, lib, fetchFromGitHub, cmake, CoreServices }: stdenv.mkDerivation rec { pname = "libbtbb"; @@ -11,7 +11,7 @@ stdenv.mkDerivation rec { sha256 = "1byv8174xam7siakr1p0523x97wkh0fmwmq341sd3g70qr2g767d"; }; - nativeBuildInputs = [ cmake ]; + nativeBuildInputs = [ cmake ] ++ lib.optionals stdenv.isDarwin [ CoreServices ]; meta = with lib; { description = "Bluetooth baseband decoding library"; diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8fe1c79cf7eb..a4c5960797b8 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -5875,7 +5875,9 @@ with pkgs; libbladeRF = callPackage ../development/libraries/libbladeRF { }; - libbtbb = callPackage ../development/libraries/libbtbb { }; + libbtbb = callPackage ../development/libraries/libbtbb { + inherit (darwin.apple_sdk.frameworks) CoreServices; + }; lp_solve = callPackage ../applications/science/math/lp_solve { inherit (darwin) cctools;