perlPackages.BarcodeZBar: init at 0.04pre

This commit is contained in:
Thomas Sean Dominic Kelly 2021-08-25 13:07:21 +01:00
parent 8723b6b237
commit 67bcf059a2

View file

@ -1221,6 +1221,26 @@ let
};
};
BarcodeZBar = buildPerlPackage {
pname = "Barcode-ZBar";
version = "0.04pre";
# The meta::cpan version of this module has been unmaintained from 2009
# This uses an updated version from the ZBar repo that works with the current ZBar library
src = "${pkgs.zbar.src}/perl";
postPatch = ''
substituteInPlace Makefile.PL --replace "-lzbar" "-L${pkgs.zbar.lib}/lib -lzbar"
rm t/Processor.t
'';
buildInputs =[ ExtUtilsMakeMaker ];
propagatedBuildInputs = [ pkgs.zbar PerlMagick ];
perlPreHook = lib.optionalString stdenv.isDarwin "export LD=$CC";
meta = {
homepage = "https://github.com/mchehab/zbar/tree/master/perl";
description = "Perl interface to the ZBar Barcode Reader";
license = with lib.licenses; [ gpl2Plus ];
};
};
BC = buildPerlPackage {
pname = "B-C";
version = "1.57";