diff --git a/pkgs/tools/graphics/qrdecode/default.nix b/pkgs/tools/graphics/qrdecode/default.nix index 9f62bac90045..16c91720964a 100644 --- a/pkgs/tools/graphics/qrdecode/default.nix +++ b/pkgs/tools/graphics/qrdecode/default.nix @@ -25,6 +25,9 @@ rec { preConfigure = fullDepEntry '' cd src sed -e /LDCONFIG/d -i libdecodeqr/Makefile.in + sed -e '/#include /a#include ' -i libdecodeqr/imagereader.h + export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${args.opencv}/include/opencv" + export NIX_LDFLAGS="$NIX_LDFLAGS -lcxcore" '' ["doUnpack"]; postInstall = fullDepEntry '' cp sample/simple/simpletest $out/bin/qrdecode