nixpkgs/pkgs/tools/backup/automysqlbackup/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
916 B
Nix
Raw Normal View History

{ 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
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
'';
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";
homepage = "https://github.com/sixhop/AutoMySQLBackup";
2019-04-12 23:06:11 +00:00
platforms = platforms.linux;
maintainers = [ maintainers.aanderse ];
license = licenses.gpl2Plus;
};
}