2015-02-05 10:55:50 +01:00
|
|
|
{ lib, goPackages, fetchgit }:
|
2015-01-28 16:28:13 +01:00
|
|
|
|
2015-02-05 10:55:50 +01:00
|
|
|
with goPackages;
|
2015-01-28 16:28:13 +01:00
|
|
|
|
2015-02-05 10:55:50 +01:00
|
|
|
buildGoPackage rec {
|
|
|
|
rev = "4556edbffa914a8c17fa1fa1564962a33c6c7596";
|
|
|
|
name = "influxdb-backup-${lib.strings.substring 0 7 rev}";
|
|
|
|
goPackagePath = "github.com/eckardt/influxdb-backup";
|
|
|
|
src = fetchgit {
|
|
|
|
inherit rev;
|
|
|
|
url = https://github.com/eckardt/influxdb-backup.git;
|
|
|
|
sha256 = "2928063e6dfe4be7b69c8e72e4d6a5fc557f0c75e9625fadf607d59b8e80e34b";
|
2015-01-28 16:28:13 +01:00
|
|
|
};
|
|
|
|
|
2015-02-05 10:55:50 +01:00
|
|
|
subPackages = [ "influxdb-dump" "influxdb-restore" ];
|
2015-01-28 16:28:13 +01:00
|
|
|
|
2015-02-05 10:55:50 +01:00
|
|
|
buildInputs = [ eckardt.influxdb-go ];
|
2015-01-28 16:28:13 +01:00
|
|
|
|
2015-02-05 10:55:50 +01:00
|
|
|
meta = with lib; {
|
2015-01-28 16:28:13 +01:00
|
|
|
description = "Backup and Restore for InfluxDB";
|
|
|
|
homepage = https://github.com/eckardt/influxdb-backup;
|
|
|
|
maintainers = with maintainers; [ offline ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|