mariadb-connector-c: 3.1.8 -> 3.1.12

This commit is contained in:
Izorkin 2021-04-21 12:02:43 +03:00
parent f9e9e425fc
commit 1f3560bb68
No known key found for this signature in database
GPG key ID: 1436C1B3F3679F09
2 changed files with 4 additions and 4 deletions

View file

@ -1,6 +1,6 @@
{ callPackage, ... } @ args:
callPackage ./. (args // {
version = "3.1.8";
sha256 = "0yrzhsxmjiwkhchagx8dymzhvxl3k5h40wn9wpicqjvgjb9k8523";
version = "3.1.12";
sha256 = "0qzyahr8x9l1xz0l79wz3iahxz7648n1azc5yr7kx0dl113y2nig";
})

View file

@ -29,8 +29,8 @@ stdenv.mkDerivation {
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"
--replace '-I%s/@INSTALL_INCLUDEDIR@' "-I$dev/include" \
--replace '-L%s/@INSTALL_LIBDIR@' "-L$out/lib/mariadb"
'';
# The cmake setup-hook uses $out/lib by default, this is not the case here.