nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 45 lines 1.1 kB view raw
1{ lib 2, stdenv 3, fetchFromGitHub 4, pkg-config 5, cmake 6}: 7 8stdenv.mkDerivation rec { 9 pname = "zxing-cpp"; 10 version = "1.2.0"; 11 12 src = fetchFromGitHub { 13 owner = "nu-book"; 14 repo = pname; 15 rev = "v${version}"; 16 hash = "sha256-M565VNKhSmYFmCMEI9UFuHWNZWeHrf9qzZkMAw9LUr4="; 17 }; 18 19 nativeBuildInputs = [ 20 cmake 21 pkg-config 22 ]; 23 24 cmakeFlags = [ 25 "-DBUILD_EXAMPLES=OFF" 26 "-DBUILD_BLACKBOX_TESTS=OFF" 27 ]; 28 29 meta = with lib; { 30 homepage = "https://github.com/nu-book/zxing-cpp"; 31 description = "C++ port of zxing (a Java barcode image processing library)"; 32 longDescription = '' 33 ZXing-C++ ("zebra crossing") is an open-source, multi-format 1D/2D barcode 34 image processing library implemented in C++. 35 36 It was originally ported from the Java ZXing Library but has been 37 developed further and now includes many improvements in terms of quality 38 and performance. It can both read and write barcodes in a number of 39 formats. 40 ''; 41 license = licenses.asl20; 42 maintainers = with maintainers; [ AndersonTorres ]; 43 platforms = with platforms; unix; 44 }; 45}