2021-06-14 17:28:33 +00:00
|
|
|
{ lib, buildGoModule, fetchFromGitHub, callPackage }:
|
2019-07-31 09:29:18 +00:00
|
|
|
|
|
|
|
buildGoModule rec {
|
|
|
|
pname = "croc";
|
2024-03-12 01:00:42 +00:00
|
|
|
version = "9.6.14";
|
2019-07-31 09:29:18 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "schollz";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2024-03-12 01:00:42 +00:00
|
|
|
sha256 = "sha256-0FtzPjaWJ1Q94rsx2WF7n24mQu2IsVBSQfddbPzQZ84=";
|
2019-07-31 09:29:18 +00:00
|
|
|
};
|
|
|
|
|
2024-03-12 01:00:42 +00:00
|
|
|
vendorHash = "sha256-IsecKLKPJgM4IoKAn8k8ipSWamdTVXcfF9V3r87eApE=";
|
2020-08-04 00:26:27 +00:00
|
|
|
|
2019-07-31 09:29:18 +00:00
|
|
|
subPackages = [ "." ];
|
|
|
|
|
2020-10-20 07:06:43 +00:00
|
|
|
passthru = {
|
|
|
|
tests = {
|
2022-04-09 13:33:43 +00:00
|
|
|
local-relay = callPackage ./test-local-relay.nix { };
|
2020-10-20 07:06:43 +00:00
|
|
|
};
|
|
|
|
};
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-06-14 17:28:33 +00:00
|
|
|
description = "Easily and securely send things from one computer to another";
|
2019-07-31 09:29:18 +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-14 17:28:33 +00:00
|
|
|
homepage = "https://github.com/schollz/croc";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hugoreeves equirosa SuperSandro2000 ];
|
2024-02-11 02:19:15 +00:00
|
|
|
mainProgram = "croc";
|
2019-07-31 09:29:18 +00:00
|
|
|
};
|
2020-05-21 04:20:50 +00:00
|
|
|
}
|