9 stdenv.mkDerivation rec {
10 pname = "mylvmbackup";
14 url = "https://www.lenzg.net/mylvmbackup/${pname}-${version}.tar.gz";
15 sha256 = "sha256-vb7M3EPIrxIz6jUwm241fzaEz2czqdCObrFgSOSgJRU=";
18 nativeBuildInputs = [ makeWrapper ];
19 buildInputs = [ perlPackages.perl ];
24 patchShebangs mylvmbackup
25 substituteInPlace Makefile \
26 --replace "prefix = /usr/local" "prefix = ${builtins.placeholder "out"}" \
27 --replace "sysconfdir = /etc" "sysconfdir = ${builtins.placeholder "out"}/etc" \
28 --replace "/usr/bin/install" "install"
32 wrapProgram "$out/bin/mylvmbackup" \
33 --prefix PERL5LIB : "${
34 perlPackages.makePerlPath (
48 homepage = "https://www.lenzg.net/mylvmbackup/";
49 description = "Tool for quickly creating full physical backups of a MySQL server's data files";
50 mainProgram = "mylvmbackup";
51 license = lib.licenses.gpl2Only;
52 maintainers = with lib.maintainers; [ ryantm ];
53 platforms = with lib.platforms; linux;