bareos: Use libmysql instead of mysql
This commit is contained in:
parent
88b8333750
commit
618c051985
@ -1,10 +1,10 @@
|
|||||||
{ stdenv, fetchFromGitHub, pkgconfig, nettools, gettext, libtool
|
{ stdenv, fetchFromGitHub, pkgconfig, nettools, gettext, libtool
|
||||||
, readline ? null, openssl ? null, python ? null, ncurses ? null
|
, readline ? null, openssl ? null, python ? null, ncurses ? null
|
||||||
, sqlite ? null, postgresql ? null, mysql ? null, zlib ? null, lzo ? null
|
, sqlite ? null, postgresql ? null, libmysql ? null, zlib ? null, lzo ? null
|
||||||
, acl ? null, glusterfs ? null, libceph ? null, libcap ? null
|
, acl ? null, glusterfs ? null, libceph ? null, libcap ? null
|
||||||
}:
|
}:
|
||||||
|
|
||||||
assert sqlite != null || postgresql != null || mysql != null;
|
assert sqlite != null || postgresql != null || libmysql != null;
|
||||||
|
|
||||||
with stdenv.lib;
|
with stdenv.lib;
|
||||||
let
|
let
|
||||||
@ -24,7 +24,7 @@ stdenv.mkDerivation rec {
|
|||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgconfig nettools gettext readline openssl python
|
pkgconfig nettools gettext readline openssl python
|
||||||
ncurses sqlite postgresql mysql.lib zlib lzo acl glusterfs libceph libcap
|
ncurses sqlite postgresql libmysql zlib lzo acl glusterfs libceph libcap
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
@ -54,7 +54,7 @@ stdenv.mkDerivation rec {
|
|||||||
++ optional (openssl != null) "--with-openssl=${openssl}"
|
++ optional (openssl != null) "--with-openssl=${openssl}"
|
||||||
++ optional (sqlite != null) "--with-sqlite3=${sqlite}"
|
++ optional (sqlite != null) "--with-sqlite3=${sqlite}"
|
||||||
++ optional (postgresql != null) "--with-postgresql=${postgresql}"
|
++ optional (postgresql != null) "--with-postgresql=${postgresql}"
|
||||||
++ optional (mysql != null) "--with-mysql=${mysql.lib}"
|
++ optional (libmysql != null) "--with-mysql=${libmysql}"
|
||||||
++ optional (zlib != null) "--with-zlib=${zlib}"
|
++ optional (zlib != null) "--with-zlib=${zlib}"
|
||||||
++ optional (lzo != null) "--with-lzo=${lzo}"
|
++ optional (lzo != null) "--with-lzo=${lzo}"
|
||||||
++ optional (acl != null) "--enable-acl"
|
++ optional (acl != null) "--enable-acl"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user