sysbench: fix cross-compilation
This commit is contained in:
parent
b39cd260dd
commit
4af1355454
@ -5,6 +5,7 @@
|
|||||||
, pkg-config
|
, pkg-config
|
||||||
, libmysqlclient
|
, libmysqlclient
|
||||||
, libaio
|
, libaio
|
||||||
|
, libck
|
||||||
, luajit
|
, luajit
|
||||||
# For testing:
|
# For testing:
|
||||||
, testers
|
, testers
|
||||||
@ -16,7 +17,8 @@ stdenv.mkDerivation rec {
|
|||||||
version = "1.0.20";
|
version = "1.0.20";
|
||||||
|
|
||||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||||
buildInputs = [ libmysqlclient luajit ] ++ lib.optionals stdenv.isLinux [ libaio ];
|
buildInputs = [ libmysqlclient luajit libck ] ++ lib.optionals stdenv.isLinux [ libaio ];
|
||||||
|
depsBuildBuild = [ pkg-config ];
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "akopytov";
|
owner = "akopytov";
|
||||||
@ -31,6 +33,9 @@ stdenv.mkDerivation rec {
|
|||||||
# The bundled version does not build on aarch64-darwin:
|
# The bundled version does not build on aarch64-darwin:
|
||||||
# https://github.com/akopytov/sysbench/issues/416
|
# https://github.com/akopytov/sysbench/issues/416
|
||||||
"--with-system-luajit"
|
"--with-system-luajit"
|
||||||
|
"--with-system-ck"
|
||||||
|
"--with-mysql-includes=${lib.getDev libmysqlclient}/include/mysql"
|
||||||
|
"--with-mysql-libs=${libmysqlclient}/lib/mysql"
|
||||||
];
|
];
|
||||||
|
|
||||||
passthru.tests = {
|
passthru.tests = {
|
||||||
|
Loading…
Reference in New Issue
Block a user