From a3dd6cdb9b6f5138119eac11f902730bc5977c5d Mon Sep 17 00:00:00 2001 From: Jeffrey McBeth Date: Sat, 19 Dec 2020 08:49:13 -0500 Subject: [PATCH] qrcodegen: init at 1.6.0 --- .../libraries/qrcodegen/default.nix | 34 +++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 36 insertions(+) create mode 100644 pkgs/development/libraries/qrcodegen/default.nix diff --git a/pkgs/development/libraries/qrcodegen/default.nix b/pkgs/development/libraries/qrcodegen/default.nix new file mode 100644 index 000000000000..b5faaf90ef7a --- /dev/null +++ b/pkgs/development/libraries/qrcodegen/default.nix @@ -0,0 +1,34 @@ +{ stdenv, fetchFromGitHub }: +stdenv.mkDerivation rec { + pname = "qrcodegen"; + version = "1.6.0"; + + src = fetchFromGitHub { + owner = "nayuki"; + repo = "QR-Code-generator"; + rev = "v${version}"; + sha256 = "0iq9sv9na0vg996aqrxrjn9rrbiyy7sc9vslw945p3ky22pw3lql"; + }; + + preBuild = "cd c"; + installPhase = '' + mkdir -p $out/lib $out/include/qrcodegen + cp libqrcodegen.a $out/lib + cp qrcodegen.h $out/include/qrcodegen/ + ''; + + meta = with stdenv.lib; + { + description = "qrcode generator library in multiple languages"; + + longDescription = '' + This project aims to be the best, clearest library for generating QR Codes. My primary goals are flexible options and absolute correctness. Secondary goals are compact implementation size and good documentation comments. + ''; + + homepage = "https://github.com/nayuki/QR-Code-generator"; + + license = licenses.mit; + platforms = platforms.all; + maintainers = with maintainers; [ mcbeth ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index dca2d81b9b2e..d5dc04f1a5b7 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -21744,6 +21744,8 @@ in java = if stdenv.isLinux then jre else jdk; }; + qrcodegen = callPackage ../development/libraries/qrcodegen { }; + qrencode = callPackage ../development/libraries/qrencode { }; geeqie = callPackage ../applications/graphics/geeqie { };