1 { lib, stdenv, fetchurl, pkg-config, SDL2, libpng, libiconv, libobjc }:
3 stdenv.mkDerivation rec {
7 outputs = [ "bin" "out" "man" "dev" ];
10 url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz";
11 sha256 = "sha256-2kSO1PUqumvLDNSMrA3VG4aSvMxM0SdDFAL8pvgXHo4=";
14 nativeBuildInputs = [ pkg-config ];
16 buildInputs = [ libiconv libpng ]
17 ++ lib.optionals stdenv.isDarwin [ libobjc ];
23 nativeCheckInputs = [ SDL2 ];
38 homepage = "https://fukuchi.org/works/qrencode/";
39 description = "C library for encoding data in a QR Code symbol";
41 Libqrencode is a C library for encoding data in a QR Code symbol,
42 a kind of 2D symbology that can be scanned by handy terminals
43 such as a mobile phone with CCD.
45 license = licenses.lgpl21Plus;
46 maintainers = with maintainers; [ adolfogc yana ];
47 platforms = platforms.all;
48 mainProgram = "qrencode";