mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-11-05 17:56:46 +01:00
perlPackages.BarcodeZBar: init at 0.04pre
This commit is contained in:
parent
8723b6b237
commit
67bcf059a2
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue