diff options
author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2021-09-08 00:01:42 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-09-08 00:01:42 +0000 |
commit | 58f8f1f05822dd19e3f781c24984a39a8e9cc420 (patch) | |
tree | 295b5809a44a678d596d8504aa0202dacd432e80 /pkgs/tools/backup | |
parent | 80cab1d0568952fdaa6e6765699e41741e965c98 (diff) | |
parent | 371e2ff37586e72d0eceb6c939e0f122c0809312 (diff) | |
download | nixpkgs-58f8f1f05822dd19e3f781c24984a39a8e9cc420.tar nixpkgs-58f8f1f05822dd19e3f781c24984a39a8e9cc420.tar.gz nixpkgs-58f8f1f05822dd19e3f781c24984a39a8e9cc420.tar.bz2 nixpkgs-58f8f1f05822dd19e3f781c24984a39a8e9cc420.tar.lz nixpkgs-58f8f1f05822dd19e3f781c24984a39a8e9cc420.tar.xz nixpkgs-58f8f1f05822dd19e3f781c24984a39a8e9cc420.tar.zst nixpkgs-58f8f1f05822dd19e3f781c24984a39a8e9cc420.zip |
Merge master into staging-next
Diffstat (limited to 'pkgs/tools/backup')
-rw-r--r-- | pkgs/tools/backup/mylvmbackup/default.nix | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/pkgs/tools/backup/mylvmbackup/default.nix b/pkgs/tools/backup/mylvmbackup/default.nix new file mode 100644 index 00000000000..ba25c56c28f --- /dev/null +++ b/pkgs/tools/backup/mylvmbackup/default.nix @@ -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; + }; +} |