···1-{ stdenv, fetchurl, autoconf, automake, pkgconfig,
2- libtool, SDL2, libpng }:
3-4-stdenv.mkDerivation rec {
5- name = "libqrencode-${version}";
6- version = "4.0.0";
7-8- src = fetchurl {
9- url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz";
10- sha1 = "644054a76c8b593acb66a8c8b7dcf1b987c3d0b2";
11- sha256 = "10da4q5pym7pzxcv21w2kc2rxmq7sp1rg58zdklwfr0jjci1nqjv";
12- };
13-14- nativeBuildInputs = [ pkgconfig ];
15- buildInputs = [ autoconf automake libtool SDL2 libpng ];
16-17- propagatedBuildInputs = [ SDL2 libpng ];
18-19- doCheck = true;
20-21- meta = with stdenv.lib; {
22- homepage = https://fukuchi.org/works/qrencode/;
23- description = "A C library for encoding data in a QR Code symbol";
24-25- longDescription = ''
26- Libqrencode is a C library for encoding data in a QR Code symbol,
27- a kind of 2D symbology that can be scanned by handy terminals
28- such as a mobile phone with CCD.
29- '';
30-31- license = licenses.gpl2Plus;
32- maintainers = [ maintainers.adolfogc ];
33- platforms = platforms.unix;
34- };
35-}