diff --git a/pkgs/development/libraries/libcec/default.nix b/pkgs/development/libraries/libcec/default.nix index 564e4bca52f1..51c23451fec8 100644 --- a/pkgs/development/libraries/libcec/default.nix +++ b/pkgs/development/libraries/libcec/default.nix @@ -12,6 +12,11 @@ stdenv.mkDerivation { buildInputs = [ autoreconfHook pkgconfig udev ]; + # Fix dlopen path + patchPhase = '' + substituteInPlace include/cecloader.h --replace "libcec.so" "$out/lib/libcec.so" + ''; + meta = with stdenv.lib; { description = "USB CEC adapter communication library"; homepage = "http://libcec.pulse-eight.com";