nixpkgs/pkgs/tools/networking/croc/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

42 lines
1.3 KiB
Nix
Raw Normal View History

2021-06-14 20:28:33 +03:00
{ lib, buildGoModule, fetchFromGitHub, callPackage }:
2019-07-31 12:29:18 +03:00
buildGoModule rec {
pname = "croc";
version = "9.6.5";
2019-07-31 12:29:18 +03:00
src = fetchFromGitHub {
owner = "schollz";
repo = pname;
rev = "v${version}";
sha256 = "sha256-mbDpd2bkNKRhe19f8sLJJnm9DkFWZ12fPqPDGN7pvCc=";
2019-07-31 12:29:18 +03:00
};
vendorHash = "sha256-Nw0d/+EQlB0DJRciB2WD0MKZ4HSYY7oSv0ddMPN0CIQ=";
2019-07-31 12:29:18 +03:00
subPackages = [ "." ];
2020-10-20 10:06:43 +03:00
passthru = {
tests = {
local-relay = callPackage ./test-local-relay.nix { };
2020-10-20 10:06:43 +03:00
};
};
meta = with lib; {
2021-06-14 20:28:33 +03:00
description = "Easily and securely send things from one computer to another";
2019-07-31 12:29:18 +03: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 20:28:33 +03:00
homepage = "https://github.com/schollz/croc";
license = licenses.mit;
maintainers = with maintainers; [ hugoreeves equirosa SuperSandro2000 ];
2019-07-31 12:29:18 +03:00
};
2020-05-21 07:20:50 +03:00
}