2021-06-28 23:13:55 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, callPackage }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "croc";
|
2022-07-14 12:49:19 +00:00
|
|
|
version = "9.6.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schollz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2022-07-14 12:49:19 +00:00
|
|
|
sha256 = "sha256-/alVraVGggViOxWZsFgdBE49PPzZijLP+ky9F686Ano=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-07-14 12:49:19 +00:00
|
|
|
vendorSha256 = "sha256-RBaMQyjqlQkH4tvgkqemIG3c0IzZiMpaa3SsSebV2Zs=";
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2020-10-27 00:29:36 +00:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
2022-04-15 01:41:22 +00:00
|
|
|
local-relay = callPackage ./test-local-relay.nix { };
|
2020-10-27 00:29:36 +00:00
|
|
|
};
|
|
|
|
};
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-06-28 23:13:55 +00:00
|
|
|
description = "Easily and securely send things from one computer to another";
|
2020-04-24 23:36:52 +00:00
|
|
|
longDescription = ''
|
|
|
|
Croc is a command line tool written in Go that allows any two computers to
|
|
|
|
simply and securely transfer files and folders.
|
|
|
|
|
|
|
|
Croc does all of the following:
|
|
|
|
- Allows any two computers to transfer data (using a relay)
|
|
|
|
- Provides end-to-end encryption (using PAKE)
|
|
|
|
- Enables easy cross-platform transfers (Windows, Linux, Mac)
|
|
|
|
- Allows multiple file transfers
|
|
|
|
- Allows resuming transfers that are interrupted
|
|
|
|
- Does not require a server or port-forwarding
|
|
|
|
'';
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/schollz/croc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hugoreeves equirosa SuperSandro2000 ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2020-05-29 06:06:01 +00:00
|
|
|
}
|