about summary refs log tree commit diff
path: root/pkgs/development/libraries
diff options
context:
space:
mode:
authorMaciej Krüger <mkg20001@gmail.com>2023-12-25 13:48:17 +0100
committerGitHub <noreply@github.com>2023-12-25 13:48:17 +0100
commit74b6c948ec59a13dc5eb5fbe7223c0a1e7cebee7 (patch)
tree53fb3dcdb3dbab6cb8222674ee8c8561ce4978aa /pkgs/development/libraries
parent1109c65b66489d8717351ad79c337754d0b439cf (diff)
parentf544c46984b35e0120b2bee731d146278d340b17 (diff)
Merge pull request #276686 from vs49688/libcec-linux
libcec: enable the "Linux CEC Framework".
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r--pkgs/development/libraries/libcec/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libcec/default.nix b/pkgs/development/libraries/libcec/default.nix
index 1d6fd44acb69e..90ffcb01cf91f 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";