mysql57: reduce closure size
This commit is contained in:
parent
0c5586c2f2
commit
4f9d007806
1 changed files with 3 additions and 2 deletions
|
@ -1,4 +1,4 @@
|
||||||
{ lib, stdenv, fetchurl, cmake, bison, pkg-config
|
{ lib, stdenv, fetchurl, cmake, bison, pkg-config, nukeReferences
|
||||||
, boost, libedit, libevent, lz4, ncurses, openssl, protobuf, readline, zlib, perl
|
, boost, libedit, libevent, lz4, ncurses, openssl, protobuf, readline, zlib, perl
|
||||||
, cctools, CoreServices, developer_cmds
|
, cctools, CoreServices, developer_cmds
|
||||||
, libtirpc, rpcsvc-proto, nixosTests
|
, libtirpc, rpcsvc-proto, nixosTests
|
||||||
|
@ -21,7 +21,7 @@ self = stdenv.mkDerivation rec {
|
||||||
export PATH=$PATH:$TMPDIR
|
export PATH=$PATH:$TMPDIR
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [ bison cmake pkg-config ]
|
nativeBuildInputs = [ bison cmake pkg-config nukeReferences ]
|
||||||
++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ];
|
++ lib.optionals (!stdenv.isDarwin) [ rpcsvc-proto ];
|
||||||
|
|
||||||
buildInputs = [ boost libedit libevent lz4 ncurses openssl protobuf readline zlib ]
|
buildInputs = [ boost libedit libevent lz4 ncurses openssl protobuf readline zlib ]
|
||||||
|
@ -66,6 +66,7 @@ self = stdenv.mkDerivation rec {
|
||||||
sed -i -e "s|/usr/bin/libtool|libtool|" cmake/merge_archives.cmake.in
|
sed -i -e "s|/usr/bin/libtool|libtool|" cmake/merge_archives.cmake.in
|
||||||
'';
|
'';
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
|
nuke-refs "$out/share/mysql/docs/INFO_BIN"
|
||||||
moveToOutput "lib/*.a" $static
|
moveToOutput "lib/*.a" $static
|
||||||
ln -s libmysqlclient${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libmysqlclient_r${stdenv.hostPlatform.extensions.sharedLibrary}
|
ln -s libmysqlclient${stdenv.hostPlatform.extensions.sharedLibrary} $out/lib/libmysqlclient_r${stdenv.hostPlatform.extensions.sharedLibrary}
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue