diff options
author | Izorkin <izorkin@elven.pw> | 2020-04-02 10:12:22 +0300 |
---|---|---|
committer | Izorkin <izorkin@elven.pw> | 2020-04-02 18:05:06 +0300 |
commit | eafdfc8f51b10b629ace0f8e5dba784b83fcc7ea (patch) | |
tree | c2134fda269c50e4fd15196a282a4e5f49d0c73a /pkgs/servers | |
parent | 0296e678cf58e944b1ba7c0a13ad7b89b0a190b4 (diff) | |
download | nixpkgs-eafdfc8f51b10b629ace0f8e5dba784b83fcc7ea.tar nixpkgs-eafdfc8f51b10b629ace0f8e5dba784b83fcc7ea.tar.gz nixpkgs-eafdfc8f51b10b629ace0f8e5dba784b83fcc7ea.tar.bz2 nixpkgs-eafdfc8f51b10b629ace0f8e5dba784b83fcc7ea.tar.lz nixpkgs-eafdfc8f51b10b629ace0f8e5dba784b83fcc7ea.tar.xz nixpkgs-eafdfc8f51b10b629ace0f8e5dba784b83fcc7ea.tar.zst nixpkgs-eafdfc8f51b10b629ace0f8e5dba784b83fcc7ea.zip |
mariadb: add option to build server without rocksdb storage
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/sql/mariadb/default.nix | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/servers/sql/mariadb/default.nix b/pkgs/servers/sql/mariadb/default.nix index 1e9c087bb6e..c0d4cc10197 100644 --- a/pkgs/servers/sql/mariadb/default.nix +++ b/pkgs/servers/sql/mariadb/default.nix @@ -4,6 +4,7 @@ , fixDarwinDylibNames, cctools, CoreServices, less , numactl # NUMA Support , withStorageMroonga ? true, kytea, msgpack, zeromq +, withStorageRocks ? true , withStorageToku ? true }: @@ -169,6 +170,10 @@ server = stdenv.mkDerivation (common // { "-DWITH_NUMA=ON" ] ++ optional (!withStorageMroonga) [ "-DWITHOUT_MROONGA=1" + ] ++ optional (!withStorageRocks) [ + "-DWITHOUT_ROCKSDB=1" + ] ++ optional (!stdenv.hostPlatform.isDarwin && withStorageRocks) [ + "-DWITH_ROCKSDB_JEMALLOC=ON" ] ++ optional (stdenv.hostPlatform.isDarwin || stdenv.hostPlatform.isMusl || !withStorageToku) [ "-DWITHOUT_TOKUDB=1" ] ++ optional (!stdenv.hostPlatform.isDarwin && withStorageToku) [ |