2011-09-04 11:12:00 +02:00
|
|
|
x@{builderDefsPackage
|
|
|
|
, imagemagickBig, pkgconfig, python, pygtk, perl, libX11, libv4l
|
2013-03-21 08:59:07 +01:00
|
|
|
, qt4, lzma, gtk2
|
2011-09-04 11:12:00 +02:00
|
|
|
, ...}:
|
|
|
|
builderDefsPackage
|
|
|
|
(a :
|
|
|
|
let
|
|
|
|
helperArgNames = ["stdenv" "fetchurl" "builderDefsPackage"] ++
|
|
|
|
[];
|
|
|
|
|
|
|
|
buildInputs = map (n: builtins.getAttr n x)
|
|
|
|
(builtins.attrNames (builtins.removeAttrs x helperArgNames));
|
|
|
|
sourceInfo = rec {
|
|
|
|
baseName="zbar";
|
|
|
|
version="0.10";
|
|
|
|
name="${baseName}-${version}";
|
|
|
|
pName="${baseName}";
|
|
|
|
url="mirror://sourceforge/project/${pName}/${baseName}/${version}/${name}.tar.bz2";
|
|
|
|
hash="1imdvf5k34g1x2zr6975basczkz3zdxg6xnci50yyp5yvcwznki3";
|
|
|
|
};
|
|
|
|
in
|
|
|
|
rec {
|
|
|
|
src = a.fetchurl {
|
|
|
|
url = sourceInfo.url;
|
|
|
|
sha256 = sourceInfo.hash;
|
|
|
|
};
|
|
|
|
|
|
|
|
inherit (sourceInfo) name version;
|
|
|
|
inherit buildInputs;
|
|
|
|
|
|
|
|
/* doConfigure should be removed if not needed */
|
|
|
|
phaseNames = ["doConfigure" "doMakeInstall"];
|
2013-03-09 09:59:45 +01:00
|
|
|
|
|
|
|
configureFlags = ["--disable-video"];
|
2011-09-04 11:12:00 +02:00
|
|
|
|
|
|
|
meta = {
|
2014-06-23 14:45:01 +02:00
|
|
|
description = "Bar code reader";
|
|
|
|
longDescription = ''
|
|
|
|
ZBar is an open source software suite for reading bar codes from various
|
|
|
|
sources, such as video streams, image files and raw intensity sensors. It
|
|
|
|
supports many popular symbologies (types of bar codes) including
|
|
|
|
EAN-13/UPC-A, UPC-E, EAN-8, Code 128, Code 39, Interleaved 2 of 5 and QR
|
|
|
|
Code.
|
|
|
|
'';
|
2011-09-04 11:12:00 +02:00
|
|
|
maintainers = with a.lib.maintainers;
|
|
|
|
[
|
|
|
|
raskin
|
|
|
|
];
|
|
|
|
platforms = with a.lib.platforms;
|
|
|
|
linux;
|
|
|
|
license = a.lib.licenses.lgpl21;
|
|
|
|
};
|
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://zbar.sourceforge.net/";
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}) x
|
|
|
|
|