2021-05-10 22:35:08 +01:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-11 21:04:24 +01:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-04-11 21:04:24 +01:00
|
|
|
, openssl
|
2021-05-10 22:35:08 +01:00
|
|
|
, Security
|
|
|
|
, libiconv
|
2020-04-11 21:04:24 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nym";
|
2021-05-06 16:57:04 +01:00
|
|
|
version = "0.10.0";
|
2020-04-11 21:04:24 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nymtech";
|
|
|
|
repo = "nym";
|
|
|
|
rev = "v${version}";
|
2021-05-06 16:57:04 +01:00
|
|
|
sha256 = "sha256-7x+B+6T0cnEOjXevA5n1k/SY1Q2tcu0bbZ9gIGoljw0=";
|
2020-04-11 21:04:24 +01:00
|
|
|
};
|
|
|
|
|
2021-05-06 16:57:04 +01:00
|
|
|
cargoSha256 = "0a7yja0ihjc66fqlshlaxpnpcpdy7h7gbv6120w2cr605qdnqvkx";
|
2020-04-11 21:04:24 +01:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-11 21:04:24 +01:00
|
|
|
|
2021-05-10 22:35:08 +01:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv ];
|
2020-04-11 21:04:24 +01:00
|
|
|
|
2021-05-06 16:57:04 +01:00
|
|
|
patches = [ ./ignore-networking-tests.patch ];
|
2020-05-13 21:19:16 +01:00
|
|
|
checkType = "debug";
|
|
|
|
|
2020-04-11 21:04:24 +01:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A mixnet providing IP-level privacy";
|
|
|
|
longDescription = ''
|
|
|
|
Nym routes IP packets through other participating nodes to hide their source and destination.
|
|
|
|
In contrast with Tor, it prevents timing attacks at the cost of latency.
|
|
|
|
'';
|
|
|
|
homepage = "https://nymtech.net";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.ehmry ];
|
2021-05-11 00:11:49 +01:00
|
|
|
platforms = platforms.all;
|
2020-04-11 21:04:24 +01:00
|
|
|
};
|
|
|
|
}
|