1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 12:11:28 +00:00

Merge pull request #136500 from ryantm/dev/ryantm/mylvmbackup

mylvmbackup: init at 0.16
This commit is contained in:
Ryan Mulligan 2021-09-07 14:06:10 -07:00 committed by GitHub
commit a83b9d3a58
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 0 deletions

View file

@ -0,0 +1,50 @@
{ lib
, stdenv
, fetchurl
, perlPackages
, makeWrapper
}:
stdenv.mkDerivation rec {
pname = "mylvmbackup";
version = "0.16";
src = fetchurl {
url = "${meta.homepage}/${pname}-${version}.tar.gz";
sha256 = "sha256-vb7M3EPIrxIz6jUwm241fzaEz2czqdCObrFgSOSgJRU=";
};
nativeBuildInputs = [ makeWrapper ];
buildInputs = [ perlPackages.perl ];
dontConfigure = true;
postPatch = ''
patchShebangs mylvmbackup
substituteInPlace Makefile \
--replace "prefix = /usr/local" "prefix = ${builtins.placeholder "out"}" \
--replace "sysconfdir = /etc" "sysconfdir = ${builtins.placeholder "out"}/etc" \
--replace "/usr/bin/install" "install"
'';
postInstall = ''
wrapProgram "$out/bin/mylvmbackup" \
--prefix PERL5LIB : "${perlPackages.makePerlPath (
with perlPackages; [
ConfigIniFiles
DBDmysql
DBI
TimeDate
FileCopyRecursive
]
)}"
'';
meta = {
homepage = "https://www.lenzg.net/mylvmbackup/";
description = "a tool for quickly creating full physical backups of a MySQL server's data files";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ ryantm ];
platforms = with lib.platforms; linux;
};
}

View file

@ -7337,6 +7337,8 @@ with pkgs;
mydumper = callPackage ../tools/backup/mydumper { };
mylvmbackup = callPackage ../tools/backup/mylvmbackup { };
mysql2pgsql = callPackage ../tools/misc/mysql2pgsql { };
mysqltuner = callPackage ../tools/misc/mysqltuner { };