nixpkgs/pkgs/servers/nosql/influxdb/backup.nix

32 lines
771 B
Nix
Raw Normal View History

2015-01-28 15:28:13 +00:00
{ stdenv, lib, go, fetchgit }:
stdenv.mkDerivation rec {
version = "4556edb";
name = "influxdb-backup-${version}";
src = import ./deps.nix {
inherit stdenv lib fetchgit;
};
buildInputs = [ go ];
buildPhase = ''
export GOPATH=$src
go build -v -o influxdb-dump github.com/eckardt/influxdb-backup/influxdb-dump
go build -v -o influxdb-restore github.com/eckardt/influxdb-backup/influxdb-restore
'';
installPhase = ''
mkdir -p $out/bin
mv influxdb-dump $out/bin
mv influxdb-restore $out/bin
'';
meta = with stdenv.lib; {
description = "Backup and Restore for InfluxDB";
homepage = https://github.com/eckardt/influxdb-backup;
maintainers = with maintainers; [ offline ];
platforms = platforms.unix;
};
}