2021-01-21 17:00:13 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub }:
|
2020-12-19 13:49:13 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "qrcodegen";
|
2021-08-17 17:35:15 +01:00
|
|
|
version = "1.7.0";
|
2020-12-19 13:49:13 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nayuki";
|
|
|
|
repo = "QR-Code-generator";
|
|
|
|
rev = "v${version}";
|
2021-08-17 17:35:15 +01:00
|
|
|
sha256 = "sha256-WH6O3YE/+NNznzl52TXZYL+6O25GmKSnaFqDDhRl4As=";
|
2020-12-19 13:49:13 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
preBuild = "cd c";
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/lib $out/include/qrcodegen
|
|
|
|
cp libqrcodegen.a $out/lib
|
|
|
|
cp qrcodegen.h $out/include/qrcodegen/
|
|
|
|
'';
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib;
|
2020-12-19 13:49:13 +00:00
|
|
|
{
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|