git.iko.soy/typeable/nixpkgs
on master help sign in
Introduce desync, an alternate implementation of casync (#47195)

desync isn't as feature-rich as casync, but has a focus on production usability and implementation quality which may make it a more appropriate tool.

commitbd13ef5944a01f02006bcd4caafaaeba6a52d323 authorCharles Duffy <charles@dyfis.net> dateSat 22 Sep 2018, 18:22 (8 years ago) parent434c261
4 files changed+163
maintainers/maintainer-list.nix+5 pkgs/applications/networking/sync/desync/default.nix+27 pkgs/applications/networking/sync/desync/deps.nix+129 pkgs/top-level/all-packages.nix+2
maintainers/maintainer-list.nix+5
@@ -678,6 +678,11 @@
678678 github = "Chaddai";
679679 name = "Chaddaï Fouché";
680680 };
681+ chaduffy = {
682+ email = "charles@dyfis.net";
683+ github = "charles-dyfis-net";
684+ name = "Charles Duffy";
685+ };
681686 changlinli = {
682687 email = "mail@changlinli.com";
683688 github = "changlinli";
pkgs/applications/networking/sync/desync/default.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, buildGoPackage, fetchFromGitHub }:
2+
3+buildGoPackage rec {
4+ name = "desync-${version}";
5+ version = "0.3.0";
6+ rev = "v${version}";
7+
8+ goPackagePath = "github.com/folbricht/desync";
9+
10+ src = fetchFromGitHub {
11+ inherit rev;
12+ owner = "folbricht";
13+ repo = "desync";
14+ sha256 = "1h2i6ai7q1mg2ysd3cnas96rb8g0bpp1v3hh7ip9nrfxhlplyyda";
15+ };
16+
17+ goDeps = ./deps.nix;
18+
19+ meta = with stdenv.lib; {
20+ description = "Content-addressed binary distribution system";
21+ longDescription = "An alternate implementation of the casync protocol and storage mechanism with a focus on production-readiness";
22+ homepage = https://github.com/folbricht/desync;
23+ license = licenses.bsd3;
24+ platforms = platforms.unix; # windows temporarily broken in 0.3.0 release
25+ maintainers = [ maintainers.chaduffy ];
26+ };
27+}
pkgs/applications/networking/sync/desync/deps.nixnew file+129
@@ -0,0 +1,129 @@
1+# This file was generated by https://github.com/kamilchm/go2nix v1.2.1
2+[
3+ {
4+ goPackagePath = "github.com/datadog/zstd";
5+ fetch = {
6+ type = "git";
7+ url = "https://github.com/datadog/zstd";
8+ rev = "940731c8fc259059120b0e617a69d54dcd7c3eee";
9+ sha256 = "04nmljnk54xm2k4ydhdiidazk3765jk8h4hvcsymkrsggrfyrjfx";
10+ };
11+ }
12+ {
13+ goPackagePath = "github.com/dchest/siphash";
14+ fetch = {
15+ type = "git";
16+ url = "https://github.com/dchest/siphash";
17+ rev = "34f201214d993633bb24f418ba11736ab8b55aa7";
18+ sha256 = "08s076y7vmjqnq7jz0762hkm896r6r31v8b31a3gy0n8rfa01k8k";
19+ };
20+ }
21+ {
22+ goPackagePath = "github.com/folbricht/tempfile";
23+ fetch = {
24+ type = "git";
25+ url = "https://github.com/folbricht/tempfile";
26+ rev = "ee190cb5934293f187a9d43ee34de7d5cf9ceb83";
27+ sha256 = "0vz08qvbniqxc24vhmcbq5ncnz97ncp4jbxgcf0hziazxfp114z3";
28+ };
29+ }
30+ {
31+ goPackagePath = "github.com/go-ini/ini";
32+ fetch = {
33+ type = "git";
34+ url = "https://github.com/go-ini/ini";
35+ rev = "fa25069db393aecc09b71267d0489b357781c860";
36+ sha256 = "0fs1c48hni5gc1fyz65d138jpmqm1sqpb7vw5vhx0j6lmj1nf45z";
37+ };
38+ }
39+ {
40+ goPackagePath = "github.com/hanwen/go-fuse";
41+ fetch = {
42+ type = "git";
43+ url = "https://github.com/hanwen/go-fuse";
44+ rev = "1d35017e97018335f348413b3aeed67468d80f7b";
45+ sha256 = "11rggvkd6lc5lcpsfvc9iip4z9cingzpkpshaskv2cirbxdynyi8";
46+ };
47+ }
48+ {
49+ goPackagePath = "github.com/kr/fs";
50+ fetch = {
51+ type = "git";
52+ url = "https://github.com/kr/fs";
53+ rev = "1455def202f6e05b95cc7bfc7e8ae67ae5141eba";
54+ sha256 = "11zg176x9hr9q7fsk95r6q0wf214gg4czy02slax4x56n79g6a7q";
55+ };
56+ }
57+ {
58+ goPackagePath = "github.com/minio/minio-go";
59+ fetch = {
60+ type = "git";
61+ url = "https://github.com/minio/minio-go";
62+ rev = "f01ef22c977052d716c74724874f932a16f047bb";
63+ sha256 = "0pn1likcwnzb2j4hi4r1ib3xlp31h2vgwyc7xnm1iv7f8l4gk2hc";
64+ };
65+ }
66+ {
67+ goPackagePath = "github.com/mitchellh/go-homedir";
68+ fetch = {
69+ type = "git";
70+ url = "https://github.com/mitchellh/go-homedir";
71+ rev = "ae18d6b8b3205b561c79e8e5f69bff09736185f4";
72+ sha256 = "0f0z0aa4wivk4z1y503dmnw0k0g0g403dly8i4q263gfshs82sbq";
73+ };
74+ }
75+ {
76+ goPackagePath = "github.com/pkg/errors";
77+ fetch = {
78+ type = "git";
79+ url = "https://github.com/pkg/errors";
80+ rev = "c059e472caf75dbe73903f6521a20abac245b17f";
81+ sha256 = "07xg8ym776j2w0k8445ii82lx8yz358cp1z96r739y13i1anqdzi";
82+ };
83+ }
84+ {
85+ goPackagePath = "github.com/pkg/sftp";
86+ fetch = {
87+ type = "git";
88+ url = "https://github.com/pkg/sftp";
89+ rev = "08de04f133f27844173471167014e1a753655ac8";
90+ sha256 = "090q4xmjbllwl3rpj1hzp0iw3qw1yvp6r3kf5cgw44ai57z96271";
91+ };
92+ }
93+ {
94+ goPackagePath = "golang.org/x/crypto";
95+ fetch = {
96+ type = "git";
97+ url = "https://go.googlesource.com/crypto";
98+ rev = "0e37d006457bf46f9e6692014ba72ef82c33022c";
99+ sha256 = "1fj8rvrhgv5j8pmckzphvm3sqkzhcqp3idkxvgv13qrjdfycsa5r";
100+ };
101+ }
102+ {
103+ goPackagePath = "golang.org/x/net";
104+ fetch = {
105+ type = "git";
106+ url = "https://go.googlesource.com/net";
107+ rev = "2f5d2388922f370f4355f327fcf4cfe9f5583908";
108+ sha256 = "03s92ygxfrd2c1m4697sd6iksgbar6c007w1yf3h6wmd79vr5dxs";
109+ };
110+ }
111+ {
112+ goPackagePath = "golang.org/x/sys";
113+ fetch = {
114+ type = "git";
115+ url = "https://go.googlesource.com/sys";
116+ rev = "d47a0f3392421c5624713c9a19fe781f651f8a50";
117+ sha256 = "01dqcv7vnynwhlmb28fn50svjb9kfj04nk7frvf7mh4jd3qnrsnv";
118+ };
119+ }
120+ {
121+ goPackagePath = "golang.org/x/text";
122+ fetch = {
123+ type = "git";
124+ url = "https://go.googlesource.com/text";
125+ rev = "905a57155faa8230500121607930ebb9dd8e139c";
126+ sha256 = "1qlvvb44j9ss3mkb5035i20xsd6sm0n05sqpqbi8gjw64g086zcb";
127+ };
128+ }
129+]
pkgs/top-level/all-packages.nix+2
@@ -1184,6 +1184,8 @@ with pkgs;
11841184
11851185 deja-dup = callPackage ../applications/backup/deja-dup { };
11861186
1187+ desync = callPackage ../applications/networking/sync/desync { };
1188+
11871189 devmem2 = callPackage ../os-specific/linux/devmem2 { };
11881190
11891191 dbus-broker = callPackage ../os-specific/linux/dbus-broker { };