mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
mydumper: 0.14.3-1 -> 0.16.9-1
This commit is contained in:
parent
d330b319fa
commit
39d9361278
@ -1,40 +1,62 @@
|
|||||||
{ lib, stdenv, fetchFromGitHub
|
{ lib, stdenv, fetchFromGitHub
|
||||||
, cmake, pkg-config, sphinx
|
, cmake, pkg-config, sphinx, python3Packages
|
||||||
, glib , pcre
|
, glib, pcre, pcre2, util-linux
|
||||||
, libmysqlclient, libressl
|
, libsysprof-capture, libmysqlclient, libressl
|
||||||
, zlib, zstd
|
, zlib, zstd
|
||||||
|
, libselinux, libsepol
|
||||||
|
, nix-update-script
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
pname = "mydumper";
|
pname = "mydumper";
|
||||||
version = "0.14.3-1";
|
version = "0.16.9-1";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mydumper";
|
owner = pname;
|
||||||
repo = "mydumper";
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
hash = "sha256-qyJGnrBOElQ3s2VoOWfW1luacd33haanmzKidMBgCpc=";
|
hash = "sha256-f/NuDyicLG0RUl/ePGYa/4B2wAZ+roVLMc+kWkNxd+Q=";
|
||||||
|
# as of mydumper v0.16.5-1, mydumper extracted its docs into a submodule
|
||||||
|
fetchSubmodules = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
outputs = [ "out" "doc" "man" ];
|
outputs = [ "out" "doc" "man" ];
|
||||||
|
|
||||||
nativeBuildInputs = [ cmake pkg-config sphinx ];
|
nativeBuildInputs = [ cmake pkg-config sphinx python3Packages.furo ];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
glib pcre
|
glib pcre pcre2 util-linux
|
||||||
libmysqlclient libressl
|
libmysqlclient libressl libsysprof-capture
|
||||||
zlib zstd
|
zlib zstd
|
||||||
];
|
] ++ lib.optionals stdenv.isLinux [ libselinux libsepol ];
|
||||||
|
|
||||||
cmakeFlags = [
|
cmakeFlags = [
|
||||||
|
"-DBUILD_DOCS=ON"
|
||||||
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
"-DCMAKE_SKIP_BUILD_RPATH=ON"
|
||||||
"-DMYSQL_INCLUDE_DIR=${lib.getDev libmysqlclient}/include/mysql"
|
"-DMYSQL_INCLUDE_DIR=${lib.getDev libmysqlclient}/include/mysql"
|
||||||
"-DWITH_ZSTD=ON"
|
|
||||||
];
|
];
|
||||||
|
|
||||||
|
env.NIX_CFLAGS_COMPILE = "-Wno-error=maybe-uninitialized";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# as of mydumper v0.14.5-1, mydumper tries to install its config to /etc
|
||||||
|
substituteInPlace CMakeLists.txt\
|
||||||
|
--replace-fail "/etc" "$out/etc"
|
||||||
|
|
||||||
|
# as of mydumper v0.16.5-1, mydumper disables building docs by default
|
||||||
|
substituteInPlace CMakeLists.txt\
|
||||||
|
--replace-fail "# add_subdirectory(docs)" "add_subdirectory(docs)"
|
||||||
|
'';
|
||||||
|
|
||||||
|
preBuild = ''
|
||||||
|
cp -r $src/docs/images ./docs
|
||||||
|
'';
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script { };
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "High-performance MySQL backup tool";
|
description = "High-performance MySQL backup tool";
|
||||||
homepage = "https://github.com/maxbube/mydumper";
|
homepage = "https://github.com/mydumper/mydumper";
|
||||||
changelog = "https://github.com/mydumper/mydumper/releases/tag/v${version}";
|
changelog = "https://github.com/mydumper/mydumper/releases/tag/v${version}";
|
||||||
license = licenses.gpl3Plus;
|
license = licenses.gpl3Plus;
|
||||||
platforms = platforms.linux;
|
platforms = platforms.linux;
|
||||||
|
Loading…
Reference in New Issue
Block a user