Created
August 9, 2022 14:51
-
-
Save jdelStrother/8f6aba714a7a5af31bb874294a838b8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# { stdenv, fetchFromGitHub, | |
# mariadb, mariadb-connector-c, | |
# boost, cmake, git, cacert, bison, icu, flex, ...}: | |
{ pkgs ? import <nixpkgs> {} }: | |
with pkgs; | |
stdenv.mkDerivation rec { | |
version = "5.0.2"; | |
pname = "manticoresearch"; | |
src = fetchFromGitHub { | |
owner = "manticoresoftware"; | |
repo = "manticoresearch"; | |
rev = "5.0.2"; | |
sha256 = "sha256-FRCy/XOlIiScIf5XO/DG5lkBdToT2xrZLsC5TsK5SQw="; | |
}; | |
enableParallelBuilding = true; | |
nativeBuildInputs = [ | |
cmake git cacert | |
]; | |
buildInputs = [ | |
(boost.override { enableStatic = true; }) | |
mariadb.client | |
mariadb-connector-c | |
bison | |
flex | |
]; | |
preHook = '' | |
# This is needed for git_repository with https remotes | |
export GIT_SSL_CAINFO="${cacert}/etc/ssl/certs/ca-bundle.crt" | |
''; | |
cmakeFlags = [ | |
"-DMYSQL_CONFIG_EXECUTABLE=${mariadb-connector-c}/bin/mysql_config" | |
"-DMYSQL_INCLUDE_DIR=${mariadb-connector-c.dev}/include/mariadb" | |
]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment