diff options
Diffstat (limited to 'pkgs/tools/graphics/qrdecode/default.nix')
-rw-r--r-- | pkgs/tools/graphics/qrdecode/default.nix | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/pkgs/tools/graphics/qrdecode/default.nix b/pkgs/tools/graphics/qrdecode/default.nix index 39e61aba6670b..16c91720964a5 100644 --- a/pkgs/tools/graphics/qrdecode/default.nix +++ b/pkgs/tools/graphics/qrdecode/default.nix @@ -6,7 +6,7 @@ let version = lib.attrByPath ["version"] "0.9.3" args; buildInputs = with args; [ - libpng libcv + libpng opencv ]; in rec { @@ -25,6 +25,9 @@ rec { preConfigure = fullDepEntry '' cd src sed -e /LDCONFIG/d -i libdecodeqr/Makefile.in + sed -e '/#include <cv.h>/a#include <ml.h>' -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 |