lol
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

libcec: enable build on darwin platform (#445550)

authored by

Aaron Andersen and committed by
GitHub
ee892309 bfda4b28

+5 -3
+3 -3
pkgs/development/libraries/libcec/default.nix
··· 23 23 24 24 # Fix dlopen path 25 25 postPatch = '' 26 - substituteInPlace include/cecloader.h --replace "libcec.so" "$out/lib/libcec.so" 26 + substituteInPlace include/cecloader.h --replace "\"libcec." "\"$out/lib/libcec." 27 27 ''; 28 28 29 29 nativeBuildInputs = [ ··· 31 31 cmake 32 32 ]; 33 33 buildInputs = [ 34 - udev 35 34 libcec_platform 36 35 ] 36 + ++ lib.optional stdenv.hostPlatform.isLinux udev 37 37 ++ lib.optional withLibraspberrypi libraspberrypi; 38 38 39 39 cmakeFlags = [ ··· 47 47 description = "Allows you (with the right hardware) to control your device with your TV remote control using existing HDMI cabling"; 48 48 homepage = "http://libcec.pulse-eight.com"; 49 49 license = lib.licenses.gpl2Plus; 50 - platforms = platforms.linux; 50 + platforms = platforms.linux ++ platforms.darwin; 51 51 teams = [ teams.kodi ]; 52 52 }; 53 53 }
+2
pkgs/development/libraries/libcec/platform.nix
··· 18 18 19 19 nativeBuildInputs = [ cmake ]; 20 20 21 + cmakeFlags = lib.optional stdenv.hostPlatform.isDarwin "-DCMAKE_CXX_FLAGS='-std=c++11'"; 22 + 21 23 meta = with lib; { 22 24 description = "Platform library for libcec and Kodi addons"; 23 25 homepage = "https://github.com/Pulse-Eight/platform";