1 { lib, stdenv, fetchFromGitHub, makeWrapper, mariadb, mailutils, pbzip2, pigz, bzip2, gzip }:
3 stdenv.mkDerivation rec {
4 pname = "automysqlbackup";
7 src = fetchFromGitHub {
11 sha256 = "sha256-C0p1AY4yIxybQ6a/HsE3ZTHumtvQw5kKM51Ap+Se0ZI=";
14 nativeBuildInputs = [ makeWrapper ];
17 mkdir -p $out/bin $out/etc
19 cp automysqlbackup $out/bin/
20 cp automysqlbackup.conf $out/etc/
22 wrapProgram $out/bin/automysqlbackup --prefix PATH : ${lib.makeBinPath [ mariadb mailutils pbzip2 pigz bzip2 gzip ]}
26 description = "Script to run daily, weekly and monthly backups for your MySQL database";
27 mainProgram = "automysqlbackup";
28 homepage = "https://github.com/sixhop/AutoMySQLBackup";
29 platforms = platforms.linux;
30 maintainers = [ maintainers.aanderse ];
31 license = licenses.gpl2Plus;