From af8da57242bb58f6bd92a764ba480065160038b0 Mon Sep 17 00:00:00 2001 From: Jonathan Rudenberg Date: Mon, 3 Nov 2014 22:00:44 -0500 Subject: [PATCH] libcec: patch dlopen path --- pkgs/development/libraries/libcec/default.nix | 5 +++++ 1 file changed, 5 insertions(+) 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";