@@ -1,29 +0,0 @@
1−{ stdenv, fetchurl, libpng, opencv }:
2−
3−stdenv.mkDerivation rec {
4− name = "libdecodeqr-${version}";
5− version = "0.9.3";
6−
7− src = fetchurl {
8− url = "mirror://debian/pool/main/libd/libdecodeqr/libdecodeqr_${version}.orig.tar.gz";
9− sha256 = "1kmljwx69h7zq6zlp2j19bbpz11px45z1abw03acrxjyzz5f1f13";
10− };
11−
12− buildInputs = [ libpng opencv ];
13−
14− preConfigure = ''
15− cd src
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"
20− '';
21−
22− preInstall = "mkdir -p $out/bin $out/lib $out/include $out/share";
23− postInstall = "cp sample/simple/simpletest $out/bin/qrdecode";
24−
25− meta = {
26− description = "QR code decoder library";
27− broken = true;
28− };
29−}