2015-04-03 10:35:10 +01:00
|
|
|
{ stdenv, fetchurl, imagemagickBig, pkgconfig, python, pygtk, perl
|
|
|
|
, libX11, libv4l, qt4, lzma, gtk2
|
|
|
|
}:
|
2011-09-04 10:12:00 +01:00
|
|
|
|
2015-04-03 10:35:10 +01:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "${pname}-${version}";
|
|
|
|
pname = "zbar";
|
|
|
|
version = "0.10";
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/project/${pname}/${pname}/${version}/${name}.tar.bz2";
|
|
|
|
sha256 = "1imdvf5k34g1x2zr6975basczkz3zdxg6xnci50yyp5yvcwznki3";
|
2011-09-04 10:12:00 +01:00
|
|
|
};
|
|
|
|
|
2015-04-03 10:35:10 +01:00
|
|
|
buildInputs =
|
|
|
|
[ imagemagickBig pkgconfig python pygtk perl libX11
|
|
|
|
libv4l qt4 lzma gtk2 ];
|
2013-03-09 08:59:45 +00:00
|
|
|
|
2016-02-24 15:17:41 +00:00
|
|
|
configureFlags = [ "--disable-video" ];
|
|
|
|
|
2016-02-26 17:38:15 +00:00
|
|
|
hardeningDisable = [ "fortify" ];
|
2015-04-03 10:35:10 +01:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2014-06-23 13:45:01 +01: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.
|
|
|
|
'';
|
2015-04-03 10:35:10 +01:00
|
|
|
maintainers = with maintainers; [ raskin ];
|
2015-11-25 22:04:57 +00:00
|
|
|
platforms = platforms.linux;
|
2015-04-03 10:35:10 +01:00
|
|
|
license = licenses.lgpl21;
|
|
|
|
homepage = http://zbar.sourceforge.net/;
|
2011-09-04 10:12:00 +01:00
|
|
|
};
|
2015-04-03 10:35:10 +01:00
|
|
|
|
2011-09-04 10:12:00 +01:00
|
|
|
passthru = {
|
|
|
|
updateInfo = {
|
|
|
|
downloadPage = "http://zbar.sourceforge.net/";
|
|
|
|
};
|
|
|
|
};
|
2015-04-03 10:35:10 +01:00
|
|
|
}
|