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