3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/tools/backup/automysqlbackup/default.nix

33 lines
916 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, makeWrapper, mariadb, mailutils, pbzip2, pigz, bzip2, gzip }:
2019-04-13 00:06:11 +01:00
stdenv.mkDerivation rec {
pname = "automysqlbackup";
2021-09-16 04:55:17 +01:00
version = "3.0.7";
2019-04-13 00:06:11 +01:00
src = fetchFromGitHub {
owner = "sixhop";
repo = pname;
rev = version;
2021-09-16 04:55:17 +01:00
sha256 = "sha256-C0p1AY4yIxybQ6a/HsE3ZTHumtvQw5kKM51Ap+Se0ZI=";
2019-04-13 00:06:11 +01: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-13 00:06:11 +01:00
'';
meta = with lib; {
2019-04-13 00:06:11 +01:00
description = "A script to run daily, weekly and monthly backups for your MySQL database";
homepage = "https://github.com/sixhop/AutoMySQLBackup";
2019-04-13 00:06:11 +01:00
platforms = platforms.linux;
maintainers = [ maintainers.aanderse ];
license = licenses.gpl2Plus;
};
}