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

mysql: Use libs in place of the binary mysql

+59 -56
+1 -1
pkgs/applications/audio/amarok/default.nix
··· 17 17 QT_PLUGIN_PATH="${qtscriptgenerator}/lib/qt4/plugins"; 18 18 19 19 buildInputs = [ qtscriptgenerator stdenv.cc.libc gettext curl 20 - libxml2 mysql taglib taglib_extras loudmouth kdelibs automoc4 phonon strigi 20 + libxml2 mysql.lib taglib taglib_extras loudmouth kdelibs automoc4 phonon strigi 21 21 soprano qca2 libmtp liblastfm libgpod pkgconfig qjson ffmpeg libofa nepomuk_core ]; 22 22 23 23 cmakeFlags = "-DKDE4_BUILD_TESTS=OFF";
+1 -1
pkgs/applications/graphics/digikam/2.nix
··· 15 15 16 16 buildInputs = [ qt4 kdelibs phonon qimageblitz qca2 eigen lcms libjpeg libtiff 17 17 jasper libgphoto2 kdepimlibs gettext soprano liblqr1 lensfun qjson libkdcraw 18 - opencv libkexiv2 libkipi boost shared_desktop_ontologies marble mysql ]; 18 + opencv libkexiv2 libkipi boost shared_desktop_ontologies marble mysql.lib ]; 19 19 20 20 # Make digikam find some FindXXXX.cmake 21 21 KDEDIRS="${marble}:${qjson}";
+1 -1
pkgs/applications/graphics/digikam/default.nix
··· 18 18 buildInputs = [ 19 19 boost eigen gettext jasper kdelibs kdepimlibs lcms lensfun 20 20 libgphoto2 libjpeg libkdcraw libkexiv2 libkipi liblqr1 libpgf 21 - libtiff marble mysql opencv phonon qca2 qimageblitz qjson qt4 21 + libtiff marble mysql.lib opencv phonon qca2 qimageblitz qjson qt4 22 22 shared_desktop_ontologies soprano 23 23 ]; 24 24
+1 -1
pkgs/applications/misc/mysql-workbench/default.nix
··· 18 18 19 19 buildInputs = [ autoconf automake boost file gettext glib glibc libgnome_keyring gtk gtkmm intltool 20 20 libctemplate libglade libgnome libiodbc libsigcxx libtool libuuid libxml2 libzip lua makeWrapper mesa 21 - mysql paramiko pcre pexpect pkgconfig pycrypto python sqlite ]; 21 + mysql.lib paramiko pcre pexpect pkgconfig pycrypto python sqlite ]; 22 22 23 23 preConfigure = '' 24 24 substituteInPlace $(pwd)/frontend/linux/workbench/mysql-workbench.in --replace "catchsegv" "${glibc}/bin/catchsegv"
+3 -3
pkgs/applications/misc/stardict/stardict.nix
··· 7 7 sha256 = "0wrb8xqy6x9piwrn0vw5alivr9h3b70xlf51qy0jpl6d7mdhm8cv"; 8 8 }; 9 9 10 - buildInputs = [ pkgconfig gtk glib zlib libxml2 intltool gnome_doc_utils libgnomeui scrollkeeper mysql pcre which libxslt]; 10 + buildInputs = [ pkgconfig gtk glib zlib libxml2 intltool gnome_doc_utils libgnomeui scrollkeeper mysql.lib pcre which libxslt]; 11 11 12 12 postPatch = '' 13 13 # mysql hacks: we need dynamic linking as there is no libmysqlclient.a 14 - substituteInPlace tools/configure --replace '/usr/local/include/mysql' '${mysql}/include/mysql/' 14 + substituteInPlace tools/configure --replace '/usr/local/include/mysql' '${mysql.lib}/include/mysql/' 15 15 substituteInPlace tools/configure --replace 'AC_FIND_FILE([libmysqlclient.a]' 'AC_FIND_FILE([libmysqlclient.so]' 16 - substituteInPlace tools/configure --replace '/usr/local/lib/mysql' '${mysql}/lib/mysql/' 16 + substituteInPlace tools/configure --replace '/usr/local/lib/mysql' '${mysql.lib}/lib/mysql/' 17 17 substituteInPlace tools/configure --replace 'for y in libmysqlclient.a' 'for y in libmysqlclient.so' 18 18 substituteInPlace tools/configure --replace 'libmysqlclient.a' 'libmysqlclient.so' 19 19
+1 -1
pkgs/applications/office/calligra/default.nix
··· 23 23 createresources eigen qca2 exiv2 soprano marble lcms2 fontconfig freetype 24 24 sqlite icu libwpd libwpg popplerQt4 libkdcraw libxslt fftw glew gsl 25 25 shared_desktop_ontologies okular libodfgen opencolorio openjpeg 26 - libvisio kactivities mysql postgresql freetds xbase openexr pstoedit 26 + libvisio kactivities mysql.lib postgresql freetds xbase openexr pstoedit 27 27 librevenge 28 28 ]; 29 29
+1 -1
pkgs/applications/video/kodi/default.nix
··· 66 66 libmpeg2 libsamplerate libmad 67 67 libogg libvorbis flac libxslt systemd 68 68 lzo libcdio libmodplug libass libbluray 69 - sqlite mysql nasm avahi libdvdcss lame 69 + sqlite mysql.lib nasm avahi libdvdcss lame 70 70 curl bzip2 zip unzip glxinfo xdpyinfo 71 71 ] 72 72 ++ lib.optional dbusSupport dbus_libs
+2 -2
pkgs/development/compilers/urweb/default.nix
··· 20 20 '' 21 21 export CC="${stdenv.cc}/bin/gcc"; 22 22 export CCARGS="-I$out/include \ 23 - -L${mysql}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib"; 23 + -L${mysql.lib}/lib/mysql -L${postgresql}/lib -L${sqlite}/lib"; 24 24 25 25 export PGHEADER="${postgresql}/include/libpq-fe.h"; 26 - export MSHEADER="${mysql}/include/mysql/mysql.h"; 26 + export MSHEADER="${mysql.lib}/include/mysql/mysql.h"; 27 27 export SQHEADER="${sqlite}/include/sqlite3.h"; 28 28 ''; 29 29
+6 -6
pkgs/development/interpreters/php/5.4.nix
··· 87 87 }; 88 88 89 89 mysql = { 90 - configureFlags = ["--with-mysql=${mysql}"]; 91 - buildInputs = [ mysql ]; 90 + configureFlags = ["--with-mysql=${mysql.lib}"]; 91 + buildInputs = [ mysql.lib ]; 92 92 }; 93 93 94 94 mysqli = { 95 - configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"]; 96 - buildInputs = [ mysql]; 95 + configureFlags = ["--with-mysqli=${mysql.lib}/bin/mysql_config"]; 96 + buildInputs = [ mysql.lib ]; 97 97 }; 98 98 99 99 mysqli_embedded = { ··· 103 103 }; 104 104 105 105 pdo_mysql = { 106 - configureFlags = ["--with-pdo-mysql=${mysql}"]; 107 - buildInputs = [ mysql ]; 106 + configureFlags = ["--with-pdo-mysql=${mysql.lib}"]; 107 + buildInputs = [ mysql.lib ]; 108 108 }; 109 109 110 110 bcmath = {
+6 -6
pkgs/development/interpreters/php/5.5.nix
··· 90 90 }; 91 91 92 92 mysql = { 93 - configureFlags = ["--with-mysql=${mysql}"]; 94 - buildInputs = [ mysql ]; 93 + configureFlags = ["--with-mysql=${mysql.lib}"]; 94 + buildInputs = [ mysql.lib ]; 95 95 }; 96 96 97 97 mysqli = { 98 - configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"]; 99 - buildInputs = [ mysql]; 98 + configureFlags = ["--with-mysqli=${mysql.lib}/bin/mysql_config"]; 99 + buildInputs = [ mysql.lib ]; 100 100 }; 101 101 102 102 mysqli_embedded = { ··· 106 106 }; 107 107 108 108 pdo_mysql = { 109 - configureFlags = ["--with-pdo-mysql=${mysql}"]; 110 - buildInputs = [ mysql ]; 109 + configureFlags = ["--with-pdo-mysql=${mysql.lib}"]; 110 + buildInputs = [ mysql.lib ]; 111 111 }; 112 112 113 113 bcmath = {
+6 -6
pkgs/development/interpreters/php/5.6.nix
··· 90 90 }; 91 91 92 92 mysql = { 93 - configureFlags = ["--with-mysql=${mysql}"]; 94 - buildInputs = [ mysql ]; 93 + configureFlags = ["--with-mysql=${mysql.lib}"]; 94 + buildInputs = [ mysql.lib ]; 95 95 }; 96 96 97 97 mysqli = { 98 - configureFlags = ["--with-mysqli=${mysql}/bin/mysql_config"]; 99 - buildInputs = [ mysql]; 98 + configureFlags = ["--with-mysqli=${mysql.lib}/bin/mysql_config"]; 99 + buildInputs = [ mysql.lib ]; 100 100 }; 101 101 102 102 mysqli_embedded = { ··· 106 106 }; 107 107 108 108 pdo_mysql = { 109 - configureFlags = ["--with-pdo-mysql=${mysql}"]; 110 - buildInputs = [ mysql ]; 109 + configureFlags = ["--with-pdo-mysql=${mysql.lib}"]; 110 + buildInputs = [ mysql.lib ]; 111 111 }; 112 112 113 113 bcmath = {
+1 -1
pkgs/development/interpreters/ruby/bundler-env/default-gem-config.nix
··· 57 57 }; 58 58 59 59 mysql2 = attrs: { 60 - buildInputs = [ mysql zlib openssl ]; 60 + buildInputs = [ mysql.lib zlib openssl ]; 61 61 }; 62 62 63 63 ncursesw = attrs: {
+3 -3
pkgs/development/libraries/libdbi-drivers/default.nix
··· 11 11 sha256 = "0m680h8cc4428xin4p733azysamzgzcmv4psjvraykrsaz6ymlj3"; 12 12 }; 13 13 14 - buildInputs = [ libdbi mysql sqlite postgresql ]; 14 + buildInputs = [ libdbi mysql.lib sqlite postgresql ]; 15 15 16 16 postPatch = '' 17 17 sed -i '/SQLITE3_LIBS/ s/-lsqlite/-lsqlite3/' configure; ··· 26 26 "--with-dbi-libdir=${libdbi}/lib" 27 27 ] ++ optionals (mysql != null) [ 28 28 "--with-mysql" 29 - "--with-mysql-incdir=${mysql}/include/mysql" 30 - "--with-mysql-libdir=${mysql}/lib/mysql" 29 + "--with-mysql-incdir=${mysql.lib}/include/mysql" 30 + "--with-mysql-libdir=${mysql.lib}/lib/mysql" 31 31 ] ++ optionals (postgresql != null) [ 32 32 "--with-pgsql" 33 33 "--with-pgsql_incdir=${postgresql}/include"
+1 -1
pkgs/development/libraries/qt-3/default.nix
··· 47 47 -I${randrproto}/include" else "-no-xrandr"} 48 48 ${if xineramaSupport then "-xinerama -L${libXinerama}/lib -I${libXinerama}/include" else "-no-xinerama"} 49 49 ${if cursorSupport then "-L${libXcursor}/lib -I${libXcursor}/include" else ""} 50 - ${if mysqlSupport then "-qt-sql-mysql -L${mysql}/lib/mysql -I${mysql}/include/mysql" else ""} 50 + ${if mysqlSupport then "-qt-sql-mysql -L${mysql.lib}/lib/mysql -I${mysql.lib}/include/mysql" else ""} 51 51 ${if xftSupport then "-xft 52 52 -L${libXft}/lib -I${libXft}/include 53 53 -L${libXft.freetype}/lib -I${libXft.freetype}/include
+1 -1
pkgs/development/libraries/qt-4.x/4.8/default.nix
··· 121 121 # The following libraries are only used in plugins 122 122 buildInputs = 123 123 [ cups # Qt dlopen's libcups instead of linking to it 124 - mysql postgresql sqlite libjpeg libmng libtiff icu ] 124 + mysql.lib postgresql sqlite libjpeg libmng libtiff icu ] 125 125 ++ optionals gtkStyle [ gtk gdk_pixbuf ]; 126 126 127 127 nativeBuildInputs = [ perl pkgconfig which ];
+1 -1
pkgs/development/libraries/qt-5/5.3/default.nix
··· 153 153 # doesn't remain a runtime-dep if not used 154 154 ++ optionals mesaSupported [ mesa mesa_glu ] 155 155 ++ optional (cups != null) cups 156 - ++ optional (mysql != null) mysql 156 + ++ optional (mysql != null) mysql.lib 157 157 ++ optional (postgresql != null) postgresql; 158 158 159 159 buildInputs = [ gdb bison flex gperf ruby ];
+2 -2
pkgs/development/libraries/unixODBCDrivers/default.nix
··· 64 64 md5 = "a484f590464fb823a8f821b2f1fd7fef"; 65 65 }; 66 66 configureFlags = "--disable-gui" 67 - + " --with-mysql-path=${mysql} --with-unixODBC=${unixODBC}"; 68 - buildInputs = [libtool zlib]; 67 + + " --with-mysql-path=${mysql.lib} --with-unixODBC=${unixODBC}"; 68 + buildInputs = [ libtool zlib ]; 69 69 inherit mysql unixODBC; 70 70 }; 71 71 ini =
+3 -3
pkgs/development/ocaml-modules/mysql/default.nix
··· 23 23 "--libdir=$out/lib/ocaml/${ocaml_version}/site-lib/mysql" 24 24 ]; 25 25 26 - buildInputs = [ocaml findlib mysql]; 26 + buildInputs = [ocaml findlib mysql.lib ]; 27 27 28 28 createFindlibDestdir = true; 29 29 30 - propagatedbuildInputs = [mysql]; 30 + propagatedbuildInputs = [ mysql.lib ]; 31 31 32 32 preConfigure = '' 33 - export LDFLAGS="-L${mysql}/lib/mysql" 33 + export LDFLAGS="-L${mysql.lib}/lib/mysql" 34 34 ''; 35 35 36 36 buildPhase = ''
+4 -1
pkgs/development/tools/misc/sysbench/default.nix
··· 2 2 3 3 stdenv.mkDerivation rec { 4 4 name = "sysbench-0.4.12"; 5 - buildInputs = [ autoreconfHook mysql libxslt zlib ]; 5 + 6 + buildInputs = [ autoreconfHook mysql.lib libxslt zlib ]; 7 + 6 8 src = fetchurl { 7 9 url = mirror://sourceforge/sysbench/sysbench-0.4.12.tar.gz; 8 10 sha256 = "17pa4cw7wxvlb4mba943lfs3b3jdi64mlnaf4n8jq09y35j79yl3"; 9 11 }; 12 + 10 13 preAutoreconf = '' 11 14 touch NEWS AUTHORS 12 15 '';
+1 -1
pkgs/servers/computing/slurm/default.nix
··· 11 11 sha256 = "0xx1q9ximsyyipl0xbj8r7ajsz4xrxik8xmhcb1z9nv0aza1rff2"; 12 12 }; 13 13 14 - buildInputs = [ python munge perl pam openssl mysql ]; 14 + buildInputs = [ python munge perl pam openssl mysql.lib ]; 15 15 16 16 configureFlags = '' 17 17 --with-munge=${munge}
+3 -3
pkgs/servers/games/ghost-one/default.nix
··· 9 9 sha256 = "1sm2ca3lcdr4vjg7v94d8zhqz8cdp44rg8yinzzwkgsr0hj74fv2"; 10 10 }; 11 11 12 - buildInputs = [ unzip gmp zlib bzip2 boost mysql ]; 12 + buildInputs = [ unzip gmp zlib bzip2 boost mysql.lib ]; 13 13 14 14 patchPhase = '' 15 - substituteInPlace ghost/Makefile --replace "/usr/local/lib/mysql" "${mysql}/lib/mysql" 15 + substituteInPlace ghost/Makefile --replace "/usr/local/lib/mysql" "${mysql.lib}/lib/mysql" 16 16 ''; 17 17 18 18 buildPhase = '' ··· 50 50 license = licenses.asl20; 51 51 maintainers = [ maintainers.phreedom ]; 52 52 }; 53 - } 53 + }
+1 -1
pkgs/servers/http/lighttpd/default.nix
··· 16 16 17 17 buildInputs = [ pkgconfig pcre libxml2 zlib attr bzip2 which file openssl ] 18 18 ++ stdenv.lib.optional enableMagnet lua5_1 19 - ++ stdenv.lib.optional enableMysql mysql; 19 + ++ stdenv.lib.optional enableMysql mysql.lib; 20 20 21 21 configureFlags = [ "--with-openssl" ] 22 22 ++ stdenv.lib.optional enableMagnet "--with-lua"
+3 -3
pkgs/servers/restund/default.nix
··· 1 - {stdenv, fetchurl, zlib, openssl, libre, librem, mysql}: 1 + { stdenv, fetchurl, zlib, openssl, libre, librem, mysql }: 2 2 stdenv.mkDerivation rec { 3 3 version = "0.4.2"; 4 4 name = "restund-${version}"; ··· 6 6 url = "http://www.creytiv.com/pub/restund-${version}.tar.gz"; 7 7 sha256 = "db5260939d40cb2ce531075bef02b9d6431067bdd52f3168a6f25246bdf7b9f2"; 8 8 }; 9 - buildInputs = [zlib openssl libre librem mysql]; 9 + buildInputs = [ zlib openssl libre librem mysql.lib ]; 10 10 makeFlags = [ 11 11 "LIBRE_MK=${libre}/share/re/re.mk" 12 12 "LIBRE_INC=${libre}/include/re" ··· 18 18 ++ stdenv.lib.optional (stdenv.cc.cc != null) "SYSROOT_ALT=${stdenv.cc.cc}" 19 19 ++ stdenv.lib.optional (stdenv.cc.libc != null) "SYSROOT=${stdenv.cc.libc}" 20 20 ; 21 - NIX_LDFLAGS='' -L${mysql}/lib/mysql ''; 21 + NIX_LDFLAGS='' -L${mysql.lib}/lib/mysql ''; 22 22 meta = { 23 23 homepage = "http://www.creytiv.com/restund.html"; 24 24 platforms = with stdenv.lib.platforms; linux;
+2 -2
pkgs/tools/backup/bareos/default.nix
··· 24 24 25 25 buildInputs = [ 26 26 pkgconfig nettools gettext readline openssl python 27 - ncurses sqlite postgresql mysql zlib lzo acl glusterfs ceph libcap 27 + ncurses sqlite postgresql mysql.lib zlib lzo acl glusterfs ceph libcap 28 28 ]; 29 29 30 30 postPatch = '' ··· 55 55 ++ optional (openssl != null) "--with-openssl=${openssl}" 56 56 ++ optional (sqlite != null) "--with-sqlite3=${sqlite}" 57 57 ++ optional (postgresql != null) "--with-postgresql=${postgresql}" 58 - ++ optional (mysql != null) "--with-mysql=${mysql}" 58 + ++ optional (mysql != null) "--with-mysql=${mysql.lib}" 59 59 ++ optional (zlib != null) "--with-zlib=${zlib}" 60 60 ++ optional (lzo != null) "--with-lzo=${lzo}" 61 61 ++ optional (acl != null) "--enable-acl"
+1 -1
pkgs/tools/networking/mailutils/default.nix
··· 17 17 18 18 buildInputs = 19 19 [ gettext gdbm libtool pam readline ncurses 20 - gnutls mysql guile texinfo gnum4 ] 20 + gnutls mysql.lib guile texinfo gnum4 ] 21 21 ++ stdenv.lib.optional doCheck dejagnu; 22 22 23 23 # Tests fail since gcc 4.8
+1 -1
pkgs/tools/package-management/disnix/dysnomia/default.nix
··· 42 42 43 43 buildInputs = [ getopt ] 44 44 ++ stdenv.lib.optional enableEjabberdDump ejabberd 45 - ++ stdenv.lib.optional enableMySQLDatabase mysql 45 + ++ stdenv.lib.optional enableMySQLDatabase mysql.lib 46 46 ++ stdenv.lib.optional enablePostgreSQLDatabase postgresql 47 47 ++ stdenv.lib.optional enableSubversionRepository subversion 48 48 ++ stdenv.lib.optional enableMongoDatabase mongodb;
+1 -1
pkgs/tools/system/collectd/default.nix
··· 36 36 buildInputs = [ 37 37 pkgconfig curl iptables libcredis libdbi libgcrypt libmemcached cyrus_sasl 38 38 libmodbus libnotify gdk_pixbuf liboping libpcap libsigrok libvirt 39 - lm_sensors libxml2 lvm2 mysql postgresql protobufc rabbitmq-c rrdtool 39 + lm_sensors libxml2 lvm2 mysql.lib postgresql protobufc rabbitmq-c rrdtool 40 40 varnish yajl 41 41 ]; 42 42
+1 -1
pkgs/tools/system/rsyslog/default.nix
··· 20 20 21 21 buildInputs = [ 22 22 pkgconfig libestr json_c zlib pythonPackages.docutils 23 - krb5 jemalloc mysql postgresql libdbi net_snmp libuuid curl gnutls 23 + krb5 jemalloc mysql.lib postgresql libdbi net_snmp libuuid curl gnutls 24 24 libgcrypt liblognorm openssl librelp libgt liblogging libnet hadoop rdkafka 25 25 libmongo-client czmq rabbitmq-c hiredis 26 26 ] ++ stdenv.lib.optional stdenv.isLinux systemd;