2021-09-18 10:52:07 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, perlPackages
|
|
|
|
, makeWrapper
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mylvmbackup";
|
|
|
|
version = "0.16";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.lenzg.net/mylvmbackup/${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/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Tool for quickly creating full physical backups of a MySQL server's data files";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mylvmbackup";
|
2021-09-18 10:52:07 +00:00
|
|
|
license = lib.licenses.gpl2Only;
|
|
|
|
maintainers = with lib.maintainers; [ ryantm ];
|
|
|
|
platforms = with lib.platforms; linux;
|
|
|
|
};
|
|
|
|
}
|