mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-14 05:37:40 +03: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 New Issue
Block a user