Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
56 lines
1.3 KiB
Nix
56 lines
1.3 KiB
Nix
{
|
|
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 = ${placeholder "out"}" \
|
|
--replace "sysconfdir = /etc" "sysconfdir = ${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 = "Tool for quickly creating full physical backups of a MySQL server's data files";
|
|
mainProgram = "mylvmbackup";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ ryantm ];
|
|
platforms = with lib.platforms; linux;
|
|
};
|
|
}
|