2021-05-10 21:35:08 +00:00
|
|
|
{ stdenv
|
|
|
|
, lib
|
2020-04-11 20:04:24 +00:00
|
|
|
, rustPlatform
|
|
|
|
, fetchFromGitHub
|
2021-01-19 06:50:56 +00:00
|
|
|
, pkg-config
|
2020-04-11 20:04:24 +00:00
|
|
|
, openssl
|
2021-05-10 21:35:08 +00:00
|
|
|
, Security
|
|
|
|
, libiconv
|
2020-04-11 20:04:24 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
|
|
pname = "nym";
|
2021-07-22 08:29:08 +00:00
|
|
|
version = "0.11.0";
|
2020-04-11 20:04:24 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nymtech";
|
|
|
|
repo = "nym";
|
|
|
|
rev = "v${version}";
|
2021-07-22 08:29:08 +00:00
|
|
|
sha256 = "sha256-bZXbteryXkOxft63zUMWdpBgbDSvrBHQY3f70/+mBtI=";
|
2020-04-11 20:04:24 +00:00
|
|
|
};
|
|
|
|
|
2023-03-25 23:16:46 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"sphinx-0.1.0" = "sha256-/NW6jHZIi2Pe/m6o86FR0pLsSuRVuLYNTTPU7JEf/Us=";
|
|
|
|
};
|
|
|
|
};
|
2020-04-11 20:04:24 +00:00
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
2020-04-11 20:04:24 +00:00
|
|
|
|
2021-05-10 21:35:08 +00:00
|
|
|
buildInputs = [ openssl ] ++ lib.optionals stdenv.isDarwin [ Security libiconv ];
|
2020-04-11 20:04:24 +00:00
|
|
|
|
2020-05-13 20:19:16 +00:00
|
|
|
checkType = "debug";
|
|
|
|
|
2020-04-11 20:04:24 +00:00
|
|
|
passthru.updateScript = ./update.sh;
|
|
|
|
|
2021-07-22 08:29:08 +00:00
|
|
|
checkFlags = [
|
|
|
|
"--skip commands::upgrade::upgrade_tests"
|
|
|
|
"--skip allowed_hosts::tests::creating_a_new_host_store"
|
|
|
|
"--skip allowed_hosts::tests::getting_the_domain_root"
|
|
|
|
"--skip allowed_hosts::tests::requests_to_allowed_hosts"
|
|
|
|
"--skip allowed_hosts::tests::requests_to_unknown_hosts"
|
|
|
|
];
|
|
|
|
|
2020-04-11 20:04:24 +00:00
|
|
|
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-10 23:11:49 +00:00
|
|
|
platforms = platforms.all;
|
2020-04-11 20:04:24 +00:00
|
|
|
};
|
|
|
|
}
|