From bf481717c8a0b306c532eb5d3cc170c1581f4324 Mon Sep 17 00:00:00 2001 From: Raghav Gururajan Date: Thu, 18 Jun 2020 10:04:15 -0400 Subject: [PATCH 51/58] gnu: Add zxing-cpp. * gnu/packages/aidc.scm (zxing-cpp): New variable. --- gnu/packages/aidc.scm | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/gnu/packages/aidc.scm b/gnu/packages/aidc.scm index 5648f5a9ec..4921ae03a1 100644 --- a/gnu/packages/aidc.scm +++ b/gnu/packages/aidc.scm @@ -37,8 +37,30 @@ #:use-module (gnu packages python-xyz) #:use-module (gnu packages qt) #:use-module (gnu packages video) + #:use-module (guix build-system cmake) #:use-module (guix build-system gnu)) +(define-public zxing-cpp + (package + (name "zxing-cpp") + (version "1.0.8") + (source + (origin + (method git-fetch) + (uri + (git-reference + (url "https://github.com/nu-book/zxing-cpp.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 "011sq8wcjfxbnd8sj6bf2fgkamlp8gj6q835g61c952npvwsnl71")))) + (build-system cmake-build-system) + (arguments + `(#:tests? #f)) ; No target + (synopsis "C++ port of ZXing") + (description "ZXing-CPP is a barcode scanning library.") + (home-page "https://github.com/nu-book/zxing-cpp") + (license license:asl2.0))) (define-public barcode (package -- 2.26.2