2016-07-11 16:46:30 +01:00
|
|
|
{ stdenv, fetchurl, autoconf, automake, pkgconfig,
|
|
|
|
libtool, SDL2, libpng }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "libqrencode-${version}";
|
2018-04-14 20:40:04 +01:00
|
|
|
version = "4.0.0";
|
2016-07-11 16:46:30 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz";
|
|
|
|
sha1 = "644054a76c8b593acb66a8c8b7dcf1b987c3d0b2";
|
2018-04-14 20:40:04 +01:00
|
|
|
sha256 = "10da4q5pym7pzxcv21w2kc2rxmq7sp1rg58zdklwfr0jjci1nqjv";
|
2016-07-11 16:46:30 +01:00
|
|
|
};
|
|
|
|
|
2017-09-05 22:26:13 +01:00
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
buildInputs = [ autoconf automake libtool SDL2 libpng ];
|
2016-07-11 16:46:30 +01:00
|
|
|
|
|
|
|
propagatedBuildInputs = [ SDL2 libpng ];
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
2017-08-02 22:50:51 +01:00
|
|
|
homepage = https://fukuchi.org/works/qrencode/;
|
2016-07-11 16:46:30 +01:00
|
|
|
description = "A C library for encoding data in a QR Code symbol";
|
|
|
|
|
|
|
|
longDescription = ''
|
|
|
|
Libqrencode is a C library for encoding data in a QR Code symbol,
|
|
|
|
a kind of 2D symbology that can be scanned by handy terminals
|
|
|
|
such as a mobile phone with CCD.
|
|
|
|
'';
|
|
|
|
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = [ maintainers.adolfogc ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|