summary refs log tree commit diff
path: root/pkgs/tools/backup/automysqlbackup
diff options
context:
space:
mode:
authorAaron Andersen <aaron@fosslib.net>2019-04-12 19:06:11 -0400
committerAaron Andersen <aaron@fosslib.net>2019-04-15 21:51:55 -0400
commit5f4df8e50935e219704389d8467f7edd363896d9 (patch)
tree5b9672047ac2032ee3509d7c7caef4d509a3efee /pkgs/tools/backup/automysqlbackup
parent1fc591f9a5bd1b016b5d66dfab29560073955a14 (diff)
downloadnixpkgs-5f4df8e50935e219704389d8467f7edd363896d9.tar
nixpkgs-5f4df8e50935e219704389d8467f7edd363896d9.tar.gz
nixpkgs-5f4df8e50935e219704389d8467f7edd363896d9.tar.bz2
nixpkgs-5f4df8e50935e219704389d8467f7edd363896d9.tar.lz
nixpkgs-5f4df8e50935e219704389d8467f7edd363896d9.tar.xz
nixpkgs-5f4df8e50935e219704389d8467f7edd363896d9.tar.zst
nixpkgs-5f4df8e50935e219704389d8467f7edd363896d9.zip
automysqlinit: init at 3.0_rc6
Diffstat (limited to 'pkgs/tools/backup/automysqlbackup')
-rw-r--r--pkgs/tools/backup/automysqlbackup/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/backup/automysqlbackup/default.nix b/pkgs/tools/backup/automysqlbackup/default.nix
new file mode 100644
index 00000000000..44c14f2dc32
--- /dev/null
+++ b/pkgs/tools/backup/automysqlbackup/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, fetchurl, makeWrapper, mysql, mailutils, pbzip2, pigz, bzip2, gzip }:
+
+stdenv.mkDerivation rec {
+  pname = "automysqlbackup";
+  version = "3.0_rc6";
+
+  src = fetchurl {
+    url = "mirror://sourceforge/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup%20VER%203.0/automysqlbackup-v${version}.tar.gz";
+    sha256 = "1h1wq86q6my1a682nr8pjagjhai4lxz967m17lhpw1vb116hd7l8";
+  };
+
+  sourceRoot = ".";
+
+  nativeBuildInputs = [ makeWrapper ];
+
+  installPhase = ''
+    mkdir -p $out/bin $out/etc
+
+    cp automysqlbackup $out/bin/
+    cp automysqlbackup.conf $out/etc/
+
+    wrapProgram $out/bin/automysqlbackup --prefix PATH : ${stdenv.lib.makeBinPath [ mysql mailutils pbzip2 pigz bzip2 gzip ]}
+  '';
+
+  meta = with stdenv.lib; {
+    description = "A script to run daily, weekly and monthly backups for your MySQL database";
+    homepage = https://sourceforge.net/projects/automysqlbackup/;
+    platforms = platforms.linux;
+    maintainers = [ maintainers.aanderse ];
+    license = licenses.gpl2Plus;
+  };
+}