about summary refs log tree commit diff
path: root/pkgs/servers/sql
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2009-04-04 00:02:38 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2009-04-04 00:02:38 +0000
commitacf5563f1014c490ea92d90872fcdbc67cac88fc (patch)
tree387dc5a055128611ef37ae704e1d578f84a2e725 /pkgs/servers/sql
parent3b514cad995c70cb41bc258834ec27f7835d36b5 (diff)
* Reduce the installed size of mysql from 80 MB to 17 MB by leaving
  out some less important stuff, such as the statically linked
  embedded binaries and some test data.  This is important because
  mysql is currently a dependency of lots of other packages, such as
  Qt.  Of course, the real fix would be to split off the mysql client
  libraries into a separate package.

svn path=/nixpkgs/trunk/; revision=14878
Diffstat (limited to 'pkgs/servers/sql')
-rw-r--r--pkgs/servers/sql/mysql5/default.nix14
1 files changed, 12 insertions, 2 deletions
diff --git a/pkgs/servers/sql/mysql5/default.nix b/pkgs/servers/sql/mysql5/default.nix
index d8f3559ed35b4..2f546edf1f7f9 100644
--- a/pkgs/servers/sql/mysql5/default.nix
+++ b/pkgs/servers/sql/mysql5/default.nix
@@ -11,7 +11,17 @@ stdenv.mkDerivation {
   };
 
   buildInputs = [ps ncurses zlib perl openssl];
-  postInstall = "ln -s mysqld_safe $out/bin/mysqld";
+  
+  configureFlags = "--enable-thread-safe-client --disable-static --with-openssl=${openssl} --with-berkeley-db";
 
-  configureFlags = "--enable-thread-safe-client --with-embedded-server --disable-static --with-openssl=${openssl} --with-berkeley-db";
+  postInstall =
+    ''
+      ln -s mysqld_safe $out/bin/mysqld
+      rm -rf $out/mysql-test $out/sql-bench $out/share/info
+    '';
+
+  meta = {
+    homepage = http://www.mysql.com/;
+    description = "The world's most popular open source database";
+  };
 }