8 , withLibraspberrypi ? false
12 stdenv.mkDerivation rec {
16 src = fetchFromGitHub {
17 owner = "Pulse-Eight";
19 rev = "libcec-${version}";
20 sha256 = "sha256-OWqCn7Z0KG8sLlfMWd0btJIFJs79ET3Y1AV/y/Kj2TU=";
25 substituteInPlace include/cecloader.h --replace "libcec.so" "$out/lib/libcec.so"
28 nativeBuildInputs = [ pkg-config cmake ];
29 buildInputs = [ udev libcec_platform ] ++
30 lib.optional withLibraspberrypi libraspberrypi;
32 cmakeFlags = [ "-DBUILD_SHARED_LIBS=1" ];
35 description = "Allows you (with the right hardware) to control your device with your TV remote control using existing HDMI cabling";
36 homepage = "http://libcec.pulse-eight.com";
37 license = lib.licenses.gpl2Plus;
38 platforms = platforms.linux;
39 maintainers = [ maintainers.titanous ];