git.iko.soy/typeable/nixpkgs
on master help sign in
opencv: Fix pkgconfig file after multiple outputs

It used to contain: ```` includedir_old=${prefix}/include/opencv includedir_new=${prefix}/include Cflags: -I${includedir_old} -I${includedir_new} ```` Should fix build of 'seeks' and some others.

commit0d9068b13119cfed14fff399f4cc0609e179ac8d authorTuomas Tynkkynen <tuomas@tuxera.com> dateThu 20 Oct 2016, 16:38 (10 years ago) parent27d018a
1 file changed+6
pkgs/development/libraries/opencv/default.nix+6
pkgs/development/libraries/opencv/default.nix+6
@@ -68,6 +68,12 @@ stdenv.mkDerivation rec {
6868
6969 hardeningDisable = [ "bindnow" "relro" ];
7070
71+ # Fix pkgconfig file that gets broken with multiple outputs
72+ postFixup = ''
73+ sed -i $dev/lib/pkgconfig/opencv.pc -e "s|includedir_old=.*|includedir_old=$dev/include/opencv|"
74+ sed -i $dev/lib/pkgconfig/opencv.pc -e "s|includedir_new=.*|includedir_new=$dev/include|"
75+ '';
76+
7177 passthru = lib.optionalAttrs enablePython { pythonPath = []; };
7278
7379 meta = {