summary refs log tree commit diff
path: root/pkgs/tools/backup/diskrsync
diff options
context:
space:
mode:
authorJaakko Luttinen <jaakko.luttinen@iki.fi>2017-12-31 10:52:30 +0200
committerJaakko Luttinen <jaakko.luttinen@iki.fi>2018-02-04 12:02:30 +0200
commit9a5b545e86fe826da481e93b6792012501ceefb4 (patch)
tree65b771073cde08cb21b9e68a2caa8d1807844c40 /pkgs/tools/backup/diskrsync
parentf59a0f7f1a6d968e0e05bd7d3188f32f17eb226f (diff)
downloadnixpkgs-9a5b545e86fe826da481e93b6792012501ceefb4.tar
nixpkgs-9a5b545e86fe826da481e93b6792012501ceefb4.tar.gz
nixpkgs-9a5b545e86fe826da481e93b6792012501ceefb4.tar.bz2
nixpkgs-9a5b545e86fe826da481e93b6792012501ceefb4.tar.lz
nixpkgs-9a5b545e86fe826da481e93b6792012501ceefb4.tar.xz
nixpkgs-9a5b545e86fe826da481e93b6792012501ceefb4.tar.zst
nixpkgs-9a5b545e86fe826da481e93b6792012501ceefb4.zip
diskrsync: init at unstable-2017-09-27
Diffstat (limited to 'pkgs/tools/backup/diskrsync')
-rw-r--r--pkgs/tools/backup/diskrsync/default.nix27
-rw-r--r--pkgs/tools/backup/diskrsync/deps.nix21
2 files changed, 48 insertions, 0 deletions
diff --git a/pkgs/tools/backup/diskrsync/default.nix b/pkgs/tools/backup/diskrsync/default.nix
new file mode 100644
index 00000000000..b223124dd14
--- /dev/null
+++ b/pkgs/tools/backup/diskrsync/default.nix
@@ -0,0 +1,27 @@
+{ buildGoPackage, fetchFromGitHub, stdenv }:
+
+buildGoPackage rec {
+
+  name = "${pname}-${version}";
+  pname = "diskrsync";
+  version = "unstable-2017-09-27";
+
+  src = fetchFromGitHub {
+    owner = "dop251";
+    repo = pname;
+    rev = "45818879a98edceaa915739c1b8ece58e4b34866";
+    sha256 = "0jvx5manh1z0shvg616vw0n5cp5v4bljk6h3mmw3bdskg9r076lh";
+  };
+
+  goPackagePath = "github.com/dop251/diskrsync";
+  goDeps = ./deps.nix;
+
+  meta = with stdenv.lib; {
+    description = "Rsync for block devices and disk images";
+    homepage = https://github.com/dop251/diskrsync;
+    license = licenses.mit;
+    platforms = platforms.all;
+    maintainers = with maintainers; [ jluttine ];
+  };
+
+}
diff --git a/pkgs/tools/backup/diskrsync/deps.nix b/pkgs/tools/backup/diskrsync/deps.nix
new file mode 100644
index 00000000000..65b64f0777a
--- /dev/null
+++ b/pkgs/tools/backup/diskrsync/deps.nix
@@ -0,0 +1,21 @@
+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
+[
+  {
+    goPackagePath = "github.com/dop251/spgz";
+    fetch = {
+      type = "git";
+      url = "https://github.com/dop251/spgz";
+      rev = "ca4328964eba8a1863356b3d927d4f6a10c966b5";
+      sha256 = "06m48hfgyj30704my205chw42xkpwfm6lv0jvhgqkkhhhs9sly62";
+    };
+  }
+  {
+    goPackagePath = "golang.org/x/crypto";
+    fetch = {
+      type = "git";
+      url = "https://go.googlesource.com/crypto";
+      rev = "95a4943f35d008beabde8c11e5075a1b714e6419";
+      sha256 = "0bkm0jx9mxmi1liabb9c04kf765n7d0062zdp3zmvzyamsq00lcx";
+    };
+  }
+]