···11-{ stdenv, fetchurl, autoconf, automake, pkgconfig,
22- libtool, SDL2, libpng }:
33-44-stdenv.mkDerivation rec {
55- name = "libqrencode-${version}";
66- version = "4.0.0";
77-88- src = fetchurl {
99- url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz";
1010- sha1 = "644054a76c8b593acb66a8c8b7dcf1b987c3d0b2";
1111- sha256 = "10da4q5pym7pzxcv21w2kc2rxmq7sp1rg58zdklwfr0jjci1nqjv";
1212- };
1313-1414- nativeBuildInputs = [ pkgconfig ];
1515- buildInputs = [ autoconf automake libtool SDL2 libpng ];
1616-1717- propagatedBuildInputs = [ SDL2 libpng ];
1818-1919- doCheck = true;
2020-2121- meta = with stdenv.lib; {
2222- homepage = https://fukuchi.org/works/qrencode/;
2323- description = "A C library for encoding data in a QR Code symbol";
2424-2525- longDescription = ''
2626- Libqrencode is a C library for encoding data in a QR Code symbol,
2727- a kind of 2D symbology that can be scanned by handy terminals
2828- such as a mobile phone with CCD.
2929- '';
3030-3131- license = licenses.gpl2Plus;
3232- maintainers = [ maintainers.adolfogc ];
3333- platforms = platforms.unix;
3434- };
3535-}
+47
pkgs/development/libraries/qrencode/default.nix
···11+{ stdenv, fetchurl, pkgconfig, SDL2, libpng }:
22+33+stdenv.mkDerivation rec {
44+ pname = "qrencode";
55+ version = "4.0.2";
66+77+ outputs = [ "bin" "out" "man" "dev" ];
88+99+ src = fetchurl {
1010+ url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz";
1111+ sha256 = "079v3a15ydpr67zdi3xbgvic8n2kxvi0m32dyz8jaik10yffgayv";
1212+ };
1313+1414+ nativeBuildInputs = [ pkgconfig ];
1515+ buildInputs = [ SDL2 libpng ];
1616+1717+ configureFlags = [
1818+ "--with-tests"
1919+ ];
2020+2121+ doCheck = true;
2222+2323+ checkPhase = ''
2424+ runHook preCheck
2525+2626+ pushd tests
2727+ ./test_basic.sh
2828+ popd
2929+3030+ runHook postCheck
3131+ '';
3232+3333+ meta = with stdenv.lib; {
3434+ homepage = https://fukuchi.org/works/qrencode/;
3535+ description = "C library for encoding data in a QR Code symbol";
3636+3737+ longDescription = ''
3838+ Libqrencode is a C library for encoding data in a QR Code symbol,
3939+ a kind of 2D symbology that can be scanned by handy terminals
4040+ such as a mobile phone with CCD.
4141+ '';
4242+4343+ license = licenses.lgpl21Plus;
4444+ maintainers = with maintainers; [ adolfogc yegortimoshenko ];
4545+ platforms = platforms.all;
4646+ };
4747+}