summary refs log tree commit diff
path: root/pkgs/development/tools/database
diff options
context:
space:
mode:
authorRobin Gloster <mail@glob.in>2017-12-27 17:00:39 +0100
committerRobin Gloster <mail@glob.in>2017-12-29 02:18:35 +0100
commit572b2bda4e0a2245f465738cc919197ae0af06a4 (patch)
tree25e272248d6d0c114354a946430499b789b7be31 /pkgs/development/tools/database
parent6903ea60502865fe4397d8aaacc38ff674acaeb9 (diff)
downloadnixlib-572b2bda4e0a2245f465738cc919197ae0af06a4.tar
nixlib-572b2bda4e0a2245f465738cc919197ae0af06a4.tar.gz
nixlib-572b2bda4e0a2245f465738cc919197ae0af06a4.tar.bz2
nixlib-572b2bda4e0a2245f465738cc919197ae0af06a4.tar.lz
nixlib-572b2bda4e0a2245f465738cc919197ae0af06a4.tar.xz
nixlib-572b2bda4e0a2245f465738cc919197ae0af06a4.tar.zst
nixlib-572b2bda4e0a2245f465738cc919197ae0af06a4.zip
treewide: generalise for both mysql & mariadb
Diffstat (limited to 'pkgs/development/tools/database')
-rw-r--r--pkgs/development/tools/database/shmig/default.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/development/tools/database/shmig/default.nix b/pkgs/development/tools/database/shmig/default.nix
index a397ba696977..49e90ce64c87 100644
--- a/pkgs/development/tools/database/shmig/default.nix
+++ b/pkgs/development/tools/database/shmig/default.nix
@@ -1,6 +1,6 @@
 { stdenv, fetchFromGitHub
 , withMySQL ? false, withPSQL ? false, withSQLite ? false
-, mariadb, postgresql, sqlite, gawk, which
+, mysql, postgresql, sqlite, gawk, which
 , lib
 }:
 
@@ -20,7 +20,7 @@ stdenv.mkDerivation {
     patchShebangs .
 
     substituteInPlace shmig \
-      --replace "\`which mysql\`" "${lib.optionalString withMySQL "${mariadb}/bin/mysql"}" \
+      --replace "\`which mysql\`" "${lib.optionalString withMySQL "${mysql.client}/bin/mysql"}" \
       --replace "\`which psql\`" "${lib.optionalString withPSQL "${postgresql}/bin/psql"}" \
       --replace "\`which sqlite3\`" "${lib.optionalString withSQLite "${sqlite}/bin/sqlite3"}" \
       --replace "awk" "${gawk}/bin/awk" \