Skip to content
This repository was archived by the owner on Apr 12, 2021. It is now read-only.
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4eec4a7a7592
Choose a base ref
...
head repository: NixOS/nixpkgs-channels
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0b887c636fff
Choose a head ref
  • 6 commits
  • 14 files changed
  • 4 contributors

Commits on Sep 19, 2020

  1. mariadb-connector-c: multiple outputs

    (cherry picked from commit c0825dd)
    ttuegel committed Sep 19, 2020
    Copy the full SHA
    d44e1ac View commit details
  2. Merge pull request #98273 from ttuegel/staging-20.09--mariadb-connect…

    …or-c-multiple-outputs
    
    mariadb-connector-c: multiple outputs
    ttuegel authored Sep 19, 2020
    Copy the full SHA
    6af8820 View commit details

Commits on Sep 21, 2020

  1. Copy the full SHA
    397fc9b View commit details

Commits on Sep 22, 2020

  1. verilator: 4.040 -> 4.100

    Signed-off-by: Pamplemousse <xav.maso@gmail.com>
    (cherry picked from commit 9839c0b)
    Pamplemousse committed Sep 22, 2020
    Copy the full SHA
    14b64ad View commit details
  2. Merge branch 'staging-20.09' into release-20.09

    aarch64 and darwin still have a few thousand builds to finish,
    but it seems OK to merge already.
    vcunat committed Sep 22, 2020
    Copy the full SHA
    888d3a4 View commit details
  3. Merge pull request #98240 from Pamplemousse/backport_verilator

    [20.09] verilator: 4.040 -> 4.100
    risicle authored Sep 22, 2020
    Copy the full SHA
    0b887c6 View commit details
4 changes: 3 additions & 1 deletion pkgs/applications/gis/grass/default.nix
Original file line number Diff line number Diff line change
@@ -3,6 +3,8 @@
, proj, gdal, geos, sqlite, postgresql, libmysqlclient, python2Packages, libLAS, proj-datumgrid
}:

let inherit (stdenv) lib; in

stdenv.mkDerivation rec {
name = "grass";
version = "7.6.1";
@@ -42,7 +44,7 @@ stdenv.mkDerivation rec {
"--with-postgres-libs=${postgresql.lib}/lib/"
# it complains about missing libmysqld but doesn't really seem to need it
"--with-mysql"
"--with-mysql-includes=${libmysqlclient}/include/mysql"
"--with-mysql-includes=${lib.getDev libmysqlclient}/include/mysql"
"--with-mysql-libs=${libmysqlclient}/lib/mysql"
"--with-blas"
"--with-liblas=${libLAS}/bin/liblas-config"
17 changes: 9 additions & 8 deletions pkgs/applications/networking/irc/communi/default.nix
Original file line number Diff line number Diff line change
@@ -19,16 +19,17 @@ stdenv.mkDerivation rec {

preConfigure = ''
export QMAKEFEATURES=${libcommuni}/features
qmakeFlags="$qmakeFlags \
COMMUNI_INSTALL_PREFIX=$out \
COMMUNI_INSTALL_BINS=$out/bin \
COMMUNI_INSTALL_PLUGINS=$out/lib/communi/plugins \
COMMUNI_INSTALL_ICONS=$out/share/icons/hicolor \
COMMUNI_INSTALL_DESKTOP=$out/share/applications \
COMMUNI_INSTALL_THEMES=$out/share/communi/themes
"
'';

qmakeFlags = [
"COMMUNI_INSTALL_PREFIX=${placeholder "out"}"
"COMMUNI_INSTALL_BINS=${placeholder "out"}/bin"
"COMMUNI_INSTALL_PLUGINS=${placeholder "out"}/lib/communi/plugins"
"COMMUNI_INSTALL_ICONS=${placeholder "out"}/share/icons/hicolor"
"COMMUNI_INSTALL_DESKTOP=${placeholder "out"}/share/applications"
"COMMUNI_INSTALL_THEMES=${placeholder "out"}/share/communi/themes"
];

postInstall = stdenv.lib.optionalString stdenv.isLinux ''
substituteInPlace "$out/share/applications/communi.desktop" \
--replace "/usr/bin" "$out/bin"
4 changes: 2 additions & 2 deletions pkgs/applications/science/electronics/verilator/default.nix
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@

stdenv.mkDerivation rec {
pname = "verilator";
version = "4.040";
version = "4.100";

src = fetchurl {
url = "https://www.veripool.org/ftp/${pname}-${version}.tgz";
sha256 = "1qy0wllsmxva3c838spxwmacxx36r3njxwhgp172m4l3829785bf";
sha256 = "0vg1gk1hqlnz74gfpf57588758myxvhqzi37yl4vqjcq40r83nr2";
};

enableParallelBuilding = true;
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gdal/2.4.0.nix
Original file line number Diff line number Diff line change
@@ -39,7 +39,7 @@ stdenv.mkDerivation rec {
"--with-poppler=${poppler.dev}" # optional
"--with-libz=${zlib.dev}" # optional
"--with-pg=${postgresql}/bin/pg_config"
"--with-mysql=${libmysqlclient}/bin/mysql_config"
"--with-mysql=${getDev libmysqlclient}/bin/mysql_config"
"--with-geotiff=${libgeotiff.dev}"
"--with-sqlite3=${sqlite.dev}"
"--with-spatialite=${libspatialite}"
2 changes: 1 addition & 1 deletion pkgs/development/libraries/gdal/default.nix
Original file line number Diff line number Diff line change
@@ -50,7 +50,7 @@ stdenv.mkDerivation rec {
"--with-poppler=${poppler.dev}" # optional
"--with-libz=${zlib.dev}" # optional
"--with-pg=yes" # since gdal 3.0 doesn't use ${postgresql}/bin/pg_config
"--with-mysql=${libmysqlclient}/bin/mysql_config"
"--with-mysql=${getDev libmysqlclient}/bin/mysql_config"
"--with-geotiff=${libgeotiff}"
"--with-sqlite3=${sqlite.dev}"
"--with-spatialite=${libspatialite}"
16 changes: 13 additions & 3 deletions pkgs/development/libraries/glpk/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{ stdenv
, fetchurl
, fetchpatch
, libmysqlclient
# Excerpt from glpk's INSTALL file:
# This feature allows the exact simplex solver to use the GNU MP
# bignum library. If it is disabled, the exact simplex solver uses the
@@ -21,9 +22,11 @@ stdenv.mkDerivation rec {
sha256 = "040sfaa9jclg2nqdh83w71sv9rc1sznpnfiripjdyr48cady50a2";
};

buildInputs = stdenv.lib.optionals withGmp [
gmp
];
buildInputs =
[ libmysqlclient
] ++ stdenv.lib.optionals withGmp [
gmp
];

configureFlags = stdenv.lib.optionals withGmp [
"--with-gmp"
@@ -47,6 +50,13 @@ stdenv.mkDerivation rec {
})
];

postPatch =
# Do not hardcode the include path for libmysqlclient.
''
substituteInPlace configure \
--replace '-I/usr/include/mysql' '$(mysql_config --include)'
'';

doCheck = true;

meta = {
2 changes: 1 addition & 1 deletion pkgs/development/libraries/libdbi-drivers/default.nix
Original file line number Diff line number Diff line change
@@ -28,7 +28,7 @@ stdenv.mkDerivation rec {
"--with-dbi-libdir=${libdbi}/lib"
] ++ optionals (libmysqlclient != null) [
"--with-mysql"
"--with-mysql-incdir=${libmysqlclient}/include/mysql"
"--with-mysql-incdir=${getDev libmysqlclient}/include/mysql"
"--with-mysql-libdir=${libmysqlclient}/lib/mysql"
] ++ optionals (sqlite != null) [
"--with-sqlite3"
4 changes: 3 additions & 1 deletion pkgs/development/libraries/opendbx/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{ stdenv, fetchurl, readline, libmysqlclient, postgresql, sqlite }:

let inherit (stdenv.lib) getDev; in

stdenv.mkDerivation rec {
name = "opendbx-1.4.6";

@@ -9,7 +11,7 @@ stdenv.mkDerivation rec {
};

preConfigure = ''
export CPPFLAGS="-I${libmysqlclient}/include/mysql"
export CPPFLAGS="-I${getDev libmysqlclient}/include/mysql"
export LDFLAGS="-L${libmysqlclient}/lib/mysql -L${postgresql}/lib"
configureFlagsArray=(--with-backends="mysql pgsql sqlite3")
'';
2 changes: 1 addition & 1 deletion pkgs/development/lua-modules/overrides.nix
Original file line number Diff line number Diff line change
@@ -169,7 +169,7 @@ with super;
luadbi-mysql = super.luadbi-mysql.override({
extraVariables = {
# Can't just be /include and /lib, unfortunately needs the trailing 'mysql'
MYSQL_INCDIR="${pkgs.libmysqlclient}/include/mysql";
MYSQL_INCDIR="${pkgs.libmysqlclient.dev}/include/mysql";
MYSQL_LIBDIR="${pkgs.libmysqlclient}/lib/mysql";
};
buildInputs = [
20 changes: 16 additions & 4 deletions pkgs/servers/sql/mariadb/connector-c/default.nix
Original file line number Diff line number Diff line change
@@ -18,13 +18,21 @@ stdenv.mkDerivation {
inherit sha256;
};

outputs = [ "out" "dev" ];

cmakeFlags = [
"-DMARIADB_UNIX_ADDR=/run/mysqld/mysqld.sock"
"-DWITH_CURL=ON"
"-DWITH_EXTERNAL_ZLIB=ON"
"-DWITH_MYSQLCOMPAT=ON"
];

postPatch = ''
substituteInPlace mariadb_config/mariadb_config.c.in \
--replace '@CMAKE_SYSROOT@@CMAKE_INSTALL_PREFIX@/@INSTALL_INCLUDEDIR@' "$dev/include" \
--replace '@CMAKE_SYSROOT@@CMAKE_INSTALL_PREFIX@/@INSTALL_LIBDIR@' "$out/lib/mariadb"
'';

# The cmake setup-hook uses $out/lib by default, this is not the case here.
preConfigure = optionalString stdenv.isDarwin ''
cmakeFlagsArray+=("-DCMAKE_INSTALL_NAME_DIR=$out/lib/mariadb")
@@ -36,12 +44,16 @@ stdenv.mkDerivation {

enableParallelBuilding = true;

postInstall = ''
moveToOutput bin/mariadb_config "$dev"
'';

postFixup = ''
ln -sv mariadb_config $out/bin/mysql_config
ln -sv mariadb_config $dev/bin/mysql_config
ln -sv mariadb $out/lib/mysql
ln -sv mariadb $out/include/mysql
ln -sv mariadb_version.h $out/include/mariadb/mysql_version.h
ln -sv libmariadb.pc $out/lib/pkgconfig/mysqlclient.pc
ln -sv mariadb $dev/include/mysql
ln -sv mariadb_version.h $dev/include/mariadb/mysql_version.h
ln -sv libmariadb.pc $dev/lib/pkgconfig/mysqlclient.pc
'';

meta = {
4 changes: 4 additions & 0 deletions pkgs/tools/backup/mydumper/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ stdenv, fetchFromGitHub, cmake, pkgconfig
, glib, zlib, pcre, libmysqlclient, libressl }:

let inherit (stdenv.lib) getDev; in

stdenv.mkDerivation rec {
version = "0.9.5";
pname = "mydumper";
@@ -16,6 +18,8 @@ stdenv.mkDerivation rec {

buildInputs = [ glib zlib pcre libmysqlclient libressl ];

cmakeFlags = [ "-DMYSQL_INCLUDE_DIR=${getDev libmysqlclient}/include/mysql" ];

meta = with stdenv.lib; {
description = ''High-perfomance MySQL backup tool'';
homepage = "https://github.com/maxbube/mydumper";
4 changes: 3 additions & 1 deletion pkgs/tools/networking/kea/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{ stdenv, fetchurl, autoreconfHook, pkgconfig, openssl, botan2, log4cplus
, boost, python3, postgresql, libmysqlclient, gmp, bzip2 }:

let inherit (stdenv) lib; in

stdenv.mkDerivation rec {
pname = "kea";
version = "1.5.0-P1";
@@ -20,7 +22,7 @@ stdenv.mkDerivation rec {
configureFlags = [
"--localstatedir=/var"
"--with-pgsql=${postgresql}/bin/pg_config"
"--with-mysql=${libmysqlclient}/bin/mysql_config"
"--with-mysql=${lib.getDev libmysqlclient}/bin/mysql_config"
];

nativeBuildInputs = [ autoreconfHook pkgconfig ];
3 changes: 0 additions & 3 deletions pkgs/tools/networking/mailutils/default.nix
Original file line number Diff line number Diff line change
@@ -18,9 +18,6 @@ stdenv.mkDerivation rec {
*/Makefile{.in,.am}
sed -i 's:/usr/lib/mysql:${libmysqlclient}/lib/mysql:' configure.ac
sed -i 's/0\.18/0.19/' configure.ac
sed -i -e 's:mysql/mysql.h:mysql.h:' \
-e 's:mysql/errmsg.h:errmsg.h:' \
sql/mysql.c
'';

nativeBuildInputs = [
5 changes: 4 additions & 1 deletion pkgs/tools/networking/pmacct/default.nix
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@ assert withSQLite -> sqlite != null;
assert withPgSQL -> postgresql != null;
assert withMysql -> libmysqlclient != null;

let inherit (stdenv.lib) optional; in
let inherit (stdenv.lib) getDev optional optionalString; in

stdenv.mkDerivation rec {
version = "1.7.5";
@@ -40,6 +40,9 @@ stdenv.mkDerivation rec {
++ optional withPgSQL postgresql
++ optional withMysql [ libmysqlclient zlib ];

MYSQL_CONFIG =
optionalString withMysql "${getDev libmysqlclient}/bin/mysql_config";

configureFlags = [
"--with-pcap-includes=${libpcap}/include"
] ++ optional withJansson "--enable-jansson"