Skip to content

Commit

Permalink
qrcodegen: init at 1.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mcbeth committed Dec 19, 2020
1 parent 15ab96d commit a3dd6cd
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
34 changes: 34 additions & 0 deletions pkgs/development/libraries/qrcodegen/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit a3dd6cd

Please sign in to comment.