From e97b63a72729d054c7eb52da4eb7f6b2cb3b3f32 Mon Sep 17 00:00:00 2001 From: "William A. Kennington III" Date: Wed, 1 Apr 2015 16:09:18 -0700 Subject: [PATCH] mariadb: Fix mysql_config generation --- pkgs/servers/sql/mariadb/default.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index c53466ae036..d85d9fff433 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -88,6 +88,11 @@ stdenv.mkDerivation rec { mv $out/lib $lib mv $out/include $lib + # Add mysql_config to libs since configure scripts use it + mkdir -p $lib/bin + cp $out/bin/mysql_config $lib/bin + sed -i "/\(execdir\|bindir\)/ s,'[^\"']*',$lib/bin,g" $lib/bin/mysql_config + # Make sure to propagate lib for compatability mkdir -p $out/nix-support echo "$lib" > $out/nix-support/propagated-build-inputs