Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

Merge pull request #53149 from jtojnar/qrencode-cleanup

qrencode: merge with libqrencode

authored by

Jan Tojnar and committed by
GitHub
b2b921bd 5c753f53

+66 -76
+2 -2
pkgs/applications/altcoins/namecoin.nix
··· 1 - { stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkgconfig, qt4, protobuf, libqrencode, hexdump 1 + { stdenv, fetchFromGitHub, openssl, boost, libevent, autoreconfHook, db4, miniupnpc, eject, pkgconfig, qt4, protobuf, qrencode, hexdump 2 2 , withGui }: 3 3 4 4 with stdenv.lib; ··· 29 29 ] ++ optionals withGui [ 30 30 qt4 31 31 protobuf 32 - libqrencode 32 + qrencode 33 33 ]; 34 34 35 35 enableParallelBuilding = true;
+2 -2
pkgs/applications/audio/faust/faustlive.nix
··· 1 1 { stdenv, fetchFromGitHub 2 - , llvm, qt48Full, libqrencode, libmicrohttpd, libjack2, alsaLib, faust, curl 2 + , llvm, qt48Full, qrencode, libmicrohttpd, libjack2, alsaLib, faust, curl 3 3 , bc, coreutils, which 4 4 }: 5 5 ··· 14 14 }; 15 15 16 16 buildInputs = [ 17 - llvm qt48Full libqrencode libmicrohttpd libjack2 alsaLib faust curl 17 + llvm qt48Full qrencode libmicrohttpd libjack2 alsaLib faust curl 18 18 bc coreutils which 19 19 ]; 20 20
+2 -2
pkgs/applications/misc/digitalbitbox/default.nix
··· 6 6 , libcap 7 7 , libevent 8 8 , libtool 9 - , libqrencode 9 + , qrencode 10 10 , udev 11 11 , libusb 12 12 , makeWrapper ··· 74 74 libtool 75 75 udev 76 76 libusb 77 - libqrencode 77 + qrencode 78 78 79 79 qtbase 80 80 qtwebsockets
+2 -2
pkgs/applications/misc/pwsafe/default.nix
··· 1 1 { stdenv, fetchFromGitHub, cmake, pkgconfig, zip, gettext, perl 2 2 , wxGTK31, libXi, libXt, libXtst, xercesc, xextproto 3 - , libqrencode, libuuid, libyubikey, yubikey-personalization 3 + , qrencode, libuuid, libyubikey, yubikey-personalization 4 4 }: 5 5 6 6 stdenv.mkDerivation rec { ··· 17 17 18 18 nativeBuildInputs = [ cmake pkgconfig zip ]; 19 19 buildInputs = [ 20 - gettext perl libqrencode libuuid 20 + gettext perl qrencode libuuid 21 21 libXi libXt libXtst wxGTK31 xercesc xextproto 22 22 libyubikey yubikey-personalization 23 23 ];
+2 -2
pkgs/applications/networking/instant-messengers/toxic/default.nix
··· 1 1 { stdenv, fetchFromGitHub, libsodium, ncurses, curl 2 2 , libtoxcore, openal, libvpx, freealut, libconfig, pkgconfig, libopus 3 - , libqrencode, gdk_pixbuf, libnotify }: 3 + , qrencode, gdk_pixbuf, libnotify }: 4 4 5 5 stdenv.mkDerivation rec { 6 6 name = "toxic-${version}"; ··· 19 19 buildInputs = [ 20 20 libtoxcore libsodium ncurses curl gdk_pixbuf libnotify 21 21 ] ++ stdenv.lib.optionals (!stdenv.isAarch32) [ 22 - openal libopus libvpx freealut libqrencode 22 + openal libopus libvpx freealut qrencode 23 23 ]; 24 24 nativeBuildInputs = [ pkgconfig libconfig ]; 25 25
+3 -3
pkgs/development/haskell-modules/hackage-packages.nix
··· 171338 171338 171339 171339 "qr-imager" = callPackage 171340 171340 ({ mkDerivation, base, binary, bytestring, cryptonite, directory 171341 - , haskell-qrencode, hspec, jose-jwt, JuicyPixels, libqrencode 171341 + , haskell-qrencode, hspec, jose-jwt, JuicyPixels, qrencode 171342 171342 , microlens, process, split, vector 171343 171343 }: 171344 171344 mkDerivation { ··· 171349 171349 base binary bytestring cryptonite directory haskell-qrencode 171350 171350 jose-jwt JuicyPixels microlens process split vector 171351 171351 ]; 171352 - libraryPkgconfigDepends = [ libqrencode ]; 171352 + libraryPkgconfigDepends = [ qrencode ]; 171353 171353 testHaskellDepends = [ base hspec ]; 171354 171354 description = "Library to generate images"; 171355 171355 license = stdenv.lib.licenses.bsd3; 171356 171356 hydraPlatforms = stdenv.lib.platforms.none; 171357 - }) {inherit (pkgs) libqrencode;}; 171357 + }) {inherit (pkgs) qrencode;}; 171358 171358 171359 171359 "qr-repa" = callPackage 171360 171360 ({ mkDerivation, aeson, base, bytestring, cryptonite, directory
-35
pkgs/development/libraries/libqrencode/default.nix
··· 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 - }
+47
pkgs/development/libraries/qrencode/default.nix
··· 1 + { stdenv, fetchurl, pkgconfig, SDL2, libpng }: 2 + 3 + stdenv.mkDerivation rec { 4 + pname = "qrencode"; 5 + version = "4.0.2"; 6 + 7 + outputs = [ "bin" "out" "man" "dev" ]; 8 + 9 + src = fetchurl { 10 + url = "https://fukuchi.org/works/qrencode/qrencode-${version}.tar.gz"; 11 + sha256 = "079v3a15ydpr67zdi3xbgvic8n2kxvi0m32dyz8jaik10yffgayv"; 12 + }; 13 + 14 + nativeBuildInputs = [ pkgconfig ]; 15 + buildInputs = [ SDL2 libpng ]; 16 + 17 + configureFlags = [ 18 + "--with-tests" 19 + ]; 20 + 21 + doCheck = true; 22 + 23 + checkPhase = '' 24 + runHook preCheck 25 + 26 + pushd tests 27 + ./test_basic.sh 28 + popd 29 + 30 + runHook postCheck 31 + ''; 32 + 33 + meta = with stdenv.lib; { 34 + homepage = https://fukuchi.org/works/qrencode/; 35 + description = "C library for encoding data in a QR Code symbol"; 36 + 37 + longDescription = '' 38 + Libqrencode is a C library for encoding data in a QR Code symbol, 39 + a kind of 2D symbology that can be scanned by handy terminals 40 + such as a mobile phone with CCD. 41 + ''; 42 + 43 + license = licenses.lgpl21Plus; 44 + maintainers = with maintainers; [ adolfogc yegortimoshenko ]; 45 + platforms = platforms.all; 46 + }; 47 + }
+1 -1
pkgs/os-specific/linux/google-authenticator/default.nix
··· 13 13 buildInputs = [ pam ]; 14 14 15 15 preConfigure = '' 16 - sed -i "s|libqrencode.so.4|${qrencode}/lib/libqrencode.so.4|" src/google-authenticator.c 16 + sed -i "s|libqrencode.so.4|${qrencode.out}/lib/libqrencode.so.4|" src/google-authenticator.c 17 17 ''; 18 18 19 19 installPhase = ''
-21
pkgs/tools/graphics/qrencode/default.nix
··· 1 - { stdenv, fetchurl, libpng, pkgconfig }: 2 - 3 - stdenv.mkDerivation rec { 4 - name = "qrencode-4.0.2"; 5 - 6 - src = fetchurl { 7 - url = "${meta.homepage}/${name}.tar.bz2"; 8 - sha256 = "1d2q5d3v8g3hsi3h5jq4n177bjhf3kawms09immw7p187f6jgjy9"; 9 - }; 10 - 11 - buildInputs = [ libpng ]; 12 - nativeBuildInputs = [ pkgconfig ]; 13 - 14 - meta = with stdenv.lib; { 15 - homepage = https://fukuchi.org/works/qrencode/; 16 - description = "QR code encoder"; 17 - platforms = platforms.all; 18 - license = licenses.lgpl21Plus; 19 - maintainers = with maintainers; [ yegortimoshenko ]; 20 - }; 21 - }
+3 -3
pkgs/tools/security/asc-key-to-qr-code-gif/default.nix
··· 1 - { stdenv, fetchFromGitHub, imagemagick, libqrencode 1 + { stdenv, fetchFromGitHub, imagemagick, qrencode 2 2 , testQR ? false, zbar ? null 3 3 }: 4 4 ··· 15 15 sha256 = "0yrc302a2fhbzryb10718ky4fymfcps3lk67ivis1qab5kbp6z8r"; 16 16 }; 17 17 18 - buildInputs = [ imagemagick libqrencode ] ++ stdenv.lib.optional testQR zbar; 18 + buildInputs = [ imagemagick qrencode ] ++ stdenv.lib.optional testQR zbar; 19 19 dontBuild = true; 20 20 dontStrip = true; 21 21 dontPatchELF = true; ··· 23 23 preInstall = '' 24 24 substituteInPlace asc-to-gif.sh \ 25 25 --replace "convert" "${imagemagick}/bin/convert" \ 26 - --replace "qrencode" "${libqrencode}/bin/qrencode" 26 + --replace "qrencode" "${qrencode.bin}/bin/qrencode" 27 27 ''; 28 28 29 29 installPhase = ''
+1
pkgs/top-level/aliases.nix
··· 171 171 libjson_rpc_cpp = libjson-rpc-cpp; # added 2017-02-28 172 172 liblapackWithoutAtlas = liblapack; # added 2018-11-05 173 173 libmysql = mysql.connector-c; # added # 2017-12-28, this was a misnomer refering to libmysqlclient 174 + libqrencode = qrencode; # added 2019-01-01 174 175 librecad2 = librecad; # backwards compatibility alias, added 2015-10 175 176 libsysfs = sysfsutils; # added 2018-04-25 176 177 libtidy = html-tidy; # added 2014-12-21
+1 -3
pkgs/top-level/all-packages.nix
··· 3992 3992 3993 3993 libqmi = callPackage ../development/libraries/libqmi { }; 3994 3994 3995 - libqrencode = callPackage ../development/libraries/libqrencode { }; 3996 - 3997 3995 libmbim = callPackage ../development/libraries/libmbim { }; 3998 3996 3999 3997 libmongo-client = callPackage ../development/libraries/libmongo-client { }; ··· 17404 17402 java = if stdenv.isLinux then jre else jdk; 17405 17403 }; 17406 17404 17407 - qrencode = callPackage ../tools/graphics/qrencode { }; 17405 + qrencode = callPackage ../development/libraries/qrencode { }; 17408 17406 17409 17407 geeqie = callPackage ../applications/graphics/geeqie { }; 17410 17408