uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
6
pkgs/tools/backup/percona-xtrabackup/2_4.nix
Normal file
6
pkgs/tools/backup/percona-xtrabackup/2_4.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{ callPackage, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // {
|
||||
version = "2.4.20";
|
||||
sha256 = "0awdpkcgvx2aq7pwxy8jyzkin6cyrrh3d576x9ldm851kis9n5ii";
|
||||
})
|
||||
14
pkgs/tools/backup/percona-xtrabackup/8_0.nix
Normal file
14
pkgs/tools/backup/percona-xtrabackup/8_0.nix
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
{ callPackage, ... } @ args:
|
||||
|
||||
callPackage ./generic.nix (args // {
|
||||
version = "8.0.13";
|
||||
sha256 = "0cj0fnjimv22ykfl0yk6w29wcjvqp8y8j2g1c6gcml65qazrswyr";
|
||||
|
||||
extraPatches = [
|
||||
./abi-check.patch
|
||||
];
|
||||
|
||||
extraPostInstall = ''
|
||||
rm -r "$out"/docs
|
||||
'';
|
||||
})
|
||||
18
pkgs/tools/backup/percona-xtrabackup/abi-check.patch
Normal file
18
pkgs/tools/backup/percona-xtrabackup/abi-check.patch
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
MySQL ABI check assumes that with -nostdinc any standard #include terminates
|
||||
preprocessing, but we do not provide that:
|
||||
https://github.com/NixOS/nixpkgs/issues/44530
|
||||
|
||||
"#error" does not terminate preprocessing, so we #include a non-existent file instead.
|
||||
|
||||
--- a/cmake/do_abi_check.cmake
|
||||
+++ b/cmake/do_abi_check.cmake
|
||||
@@ -68,1 +68,1 @@ FOREACH(file ${ABI_HEADERS})
|
||||
- -E -nostdinc -dI -DMYSQL_ABI_CHECK -I${SOURCE_DIR}/include
|
||||
+ -E -nostdinc -dI -DMYSQL_ABI_CHECK -I${SOURCE_DIR}/include/nostdinc -I${SOURCE_DIR}/include
|
||||
@@ -74,1 +74,1 @@ FOREACH(file ${ABI_HEADERS})
|
||||
- COMMAND sed -e "/^# /d"
|
||||
+ COMMAND sed -e "/^# /d" -e "/^#include <-nostdinc>$/d"
|
||||
--- /dev/null
|
||||
+++ b/include/nostdinc/stdint.h
|
||||
@@ -0,0 +1,1 @@
|
||||
+#include <-nostdinc>
|
||||
63
pkgs/tools/backup/percona-xtrabackup/generic.nix
Normal file
63
pkgs/tools/backup/percona-xtrabackup/generic.nix
Normal file
|
|
@ -0,0 +1,63 @@
|
|||
{ lib, stdenv, fetchFromGitHub, bison, boost, cmake, makeWrapper, pkg-config
|
||||
, curl, cyrus_sasl, libaio, libedit, libev, libevent, libgcrypt, libgpg-error, lz4
|
||||
, ncurses, numactl, openssl, protobuf, valgrind, xxd, zlib
|
||||
, perlPackages
|
||||
, version, sha256, extraPatches ? [], extraPostInstall ? "", ...
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "percona-xtrabackup";
|
||||
inherit version;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "percona";
|
||||
repo = "percona-xtrabackup";
|
||||
rev = "${pname}-${version}";
|
||||
inherit sha256;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ bison boost cmake makeWrapper pkg-config ];
|
||||
|
||||
buildInputs = [
|
||||
curl cyrus_sasl libaio libedit libev libevent libgcrypt libgpg-error lz4
|
||||
ncurses numactl openssl protobuf valgrind xxd zlib
|
||||
] ++ (with perlPackages; [ perl DBI DBDmysql ]);
|
||||
|
||||
patches = extraPatches;
|
||||
|
||||
# Workaround build failure on -fno-common toolchains:
|
||||
# ld: xbstream.c.o:(.bss+0x0): multiple definition of
|
||||
# `datasink_buffer'; ds_buffer.c.o:(.data.rel.local+0x0): first defined here
|
||||
NIX_CFLAGS_COMPILE = "-fcommon";
|
||||
|
||||
cmakeFlags = [
|
||||
"-DMYSQL_UNIX_ADDR=/run/mysqld/mysqld.sock"
|
||||
"-DBUILD_CONFIG=xtrabackup_release"
|
||||
"-DINSTALL_MYSQLTESTDIR=OFF"
|
||||
"-DWITH_BOOST=system"
|
||||
"-DWITH_CURL=system"
|
||||
"-DWITH_EDITLINE=system"
|
||||
"-DWITH_LIBEVENT=system"
|
||||
"-DWITH_LZ4=system"
|
||||
"-DWITH_PROTOBUF=system"
|
||||
"-DWITH_SASL=system"
|
||||
"-DWITH_SSL=system"
|
||||
"-DWITH_ZLIB=system"
|
||||
"-DWITH_VALGRIND=ON"
|
||||
"-DWITH_MAN_PAGES=OFF"
|
||||
"-DCMAKE_SKIP_BUILD_RPATH=OFF" # To run libmysql/libmysql_api_test during build.
|
||||
];
|
||||
|
||||
postInstall = ''
|
||||
wrapProgram "$out"/bin/xtrabackup --prefix PERL5LIB : $PERL5LIB
|
||||
rm -r "$out"/lib/plugin/debug
|
||||
'' + extraPostInstall;
|
||||
|
||||
meta = with lib; {
|
||||
description = "Non-blocking backup tool for MySQL";
|
||||
homepage = "http://www.percona.com/software/percona-xtrabackup";
|
||||
license = licenses.lgpl2;
|
||||
platforms = platforms.linux;
|
||||
maintainers = with maintainers; [ izorkin ];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue