2021-08-07 11:17:44 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, makeWrapper, mariadb, mailutils, pbzip2, pigz, bzip2, gzip }:
|
2019-04-12 23:06:11 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "automysqlbackup";
|
2021-09-16 03:55:17 +00:00
|
|
|
version = "3.0.7";
|
2019-04-12 23:06:11 +00:00
|
|
|
|
2021-08-07 11:17:44 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "sixhop";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-09-16 03:55:17 +00:00
|
|
|
sha256 = "sha256-C0p1AY4yIxybQ6a/HsE3ZTHumtvQw5kKM51Ap+Se0ZI=";
|
2019-04-12 23:06:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/etc
|
|
|
|
|
|
|
|
cp automysqlbackup $out/bin/
|
|
|
|
cp automysqlbackup.conf $out/etc/
|
|
|
|
|
2021-03-14 16:11:57 +00:00
|
|
|
wrapProgram $out/bin/automysqlbackup --prefix PATH : ${lib.makeBinPath [ mariadb mailutils pbzip2 pigz bzip2 gzip ]}
|
2019-04-12 23:06:11 +00:00
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-04-12 23:06:11 +00:00
|
|
|
description = "A script to run daily, weekly and monthly backups for your MySQL database";
|
2024-03-19 02:14:51 +00:00
|
|
|
mainProgram = "automysqlbackup";
|
2021-08-07 11:17:44 +00:00
|
|
|
homepage = "https://github.com/sixhop/AutoMySQLBackup";
|
2019-04-12 23:06:11 +00:00
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = [ maintainers.aanderse ];
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
};
|
|
|
|
}
|