From f544c46984b35e0120b2bee731d146278d340b17 Mon Sep 17 00:00:00 2001 From: Zane van Iperen Date: Mon, 25 Dec 2023 03:58:50 +1000 Subject: [PATCH] libcec: enable the "Linux CEC Framework". As per documentation [1]. [1]: https://github.com/Pulse-Eight/libcec/blob/master/docs/README.linux.md?plain=1#L57 --- pkgs/development/libraries/libcec/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/pkgs/development/libraries/libcec/default.nix b/pkgs/development/libraries/libcec/default.nix index 1d6fd44acb69..90ffcb01cf91 100644 --- a/pkgs/development/libraries/libcec/default.nix +++ b/pkgs/development/libraries/libcec/default.nix @@ -29,7 +29,11 @@ stdenv.mkDerivation rec { buildInputs = [ udev libcec_platform ] ++ lib.optional withLibraspberrypi libraspberrypi; - cmakeFlags = [ "-DBUILD_SHARED_LIBS=1" ]; + cmakeFlags = [ + "-DBUILD_SHARED_LIBS=1" + ] ++ lib.optionals stdenv.isLinux [ + "-DHAVE_LINUX_API=1" + ]; meta = with lib; { description = "Allows you (with the right hardware) to control your device with your TV remote control using existing HDMI cabling";