nixpkgs/pkgs/by-name/ny/nym/package.nix

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

91 lines
2.2 KiB
Nix
Raw Normal View History

2024-10-03 09:30:28 +00:00
{
stdenv,
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
darwin,
nix-update-script,
rustc,
2024-10-25 14:25:19 +00:00
fetchurl,
2020-04-11 20:04:24 +00:00
}:
2024-10-03 09:30:28 +00:00
rustPlatform.buildRustPackage rec {
2020-04-11 20:04:24 +00:00
pname = "nym";
2024-10-25 14:25:19 +00:00
version = "2024.12-aero";
2020-04-11 20:04:24 +00:00
src = fetchFromGitHub {
owner = "nymtech";
repo = "nym";
2023-06-19 11:14:56 +00:00
rev = "nym-binaries-v${version}";
2024-10-25 14:25:19 +00:00
hash = "sha256-bUY0ctfE1i0pjqdT/LT43FB9rDO5OKBVaTckm5qxnms=";
};
swagger-ui = fetchurl {
url = "https://github.com/swagger-api/swagger-ui/archive/refs/tags/v5.17.14.zip";
hash = "sha256-SBJE0IEgl7Efuu73n3HZQrFxYX+cn5UU5jrL4T5xzNw=";
2020-04-11 20:04:24 +00:00
};
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"bls12_381-0.8.0" = "sha256-4+X/ZQ5Z+Nax4Ot1JWWvvLxuIUaucHkfnDB2L+Ak7Ro=";
"cosmos-sdk-proto-0.22.0-pre" = "sha256-nRfcAbjFcvAqool+6heYK8joiU5YaSWITnO6S5MRM1E=";
2024-10-25 14:25:19 +00:00
"defguard_wireguard_rs-0.4.7" = "sha256-+5m1+XGJ6Fi8v6rgjt0jRmwIruIL+OPP7zq/+166WMw=";
"indexed_db_futures-0.4.2" = "sha256-vVqrD40CBdSSEtU+kQeuZUfsgpJdl8ks+os0Fct8Ung=";
};
};
2020-04-11 20:04:24 +00:00
2024-10-25 14:25:19 +00:00
env = {
SWAGGER_UI_DOWNLOAD_URL = "file://${swagger-ui}";
};
2024-10-03 09:30:28 +00:00
nativeBuildInputs = [
pkg-config
];
2020-04-11 20:04:24 +00:00
2024-10-03 09:30:28 +00:00
buildInputs =
[
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
SystemConfiguration
CoreServices
]
);
2020-04-11 20:04:24 +00:00
checkType = "debug";
2023-06-19 11:14:56 +00:00
passthru.updateScript = nix-update-script { };
2020-04-11 20:04:24 +00:00
2023-06-19 11:14:56 +00:00
env = {
VERGEN_BUILD_TIMESTAMP = "0";
VERGEN_BUILD_SEMVER = version;
VERGEN_GIT_COMMIT_TIMESTAMP = "0";
VERGEN_GIT_BRANCH = "master";
VERGEN_RUSTC_SEMVER = rustc.version;
VERGEN_RUSTC_CHANNEL = "stable";
VERGEN_CARGO_PROFILE = "release";
};
checkFlags = [
"--skip=ping::http::tests::resolve_host_with_valid_hostname_returns_some"
];
2024-10-03 09:30:28 +00:00
meta = {
2020-04-11 20:04:24 +00:00
description = "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";
2024-10-03 09:30:28 +00:00
license = lib.licenses.asl20;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ bot-wxt1221 ];
2020-04-11 20:04:24 +00:00
};
}