@@ -1,29 +0,0 @@
1−{ stdenv, fetchurl, libpng, opencv }:
3−stdenv.mkDerivation rec {
4− name = "libdecodeqr-${version}";
8− url = "mirror://debian/pool/main/libd/libdecodeqr/libdecodeqr_${version}.orig.tar.gz";
9− sha256 = "1kmljwx69h7zq6zlp2j19bbpz11px45z1abw03acrxjyzz5f1f13";
12− buildInputs = [ libpng opencv ];
16− sed -e /LDCONFIG/d -i libdecodeqr/Makefile.in
17− sed -e '/#include <cv.h>/a#include <ml.h>' -i libdecodeqr/imagereader.h
18− export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${opencv}/include/opencv"
19− export NIX_LDFLAGS="$NIX_LDFLAGS -lcxcore"
22− preInstall = "mkdir -p $out/bin $out/lib $out/include $out/share";
23− postInstall = "cp sample/simple/simpletest $out/bin/qrdecode";
26− description = "QR code decoder library";