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.

80 lines
1.9 KiB
Nix
Raw Normal View History

2024-10-03 10:30:28 +01:00
{
stdenv,
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
darwin,
nix-update-script,
rustc,
2020-04-11 21:04:24 +01:00
}:
2024-10-03 10:30:28 +01:00
rustPlatform.buildRustPackage rec {
2020-04-11 21:04:24 +01:00
pname = "nym";
version = "2024.10-caramello";
2020-04-11 21:04:24 +01:00
src = fetchFromGitHub {
owner = "nymtech";
repo = "nym";
2023-06-19 12:14:56 +01:00
rev = "nym-binaries-v${version}";
hash = "sha256-0vEvjVCbwyJ7lpvZnIT551Kul0JfkcNSeURbX2PUZ4w=";
2020-04-11 21:04:24 +01: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=";
"indexed_db_futures-0.4.2" = "sha256-vVqrD40CBdSSEtU+kQeuZUfsgpJdl8ks+os0Fct8Ung=";
};
};
2020-04-11 21:04:24 +01:00
2024-10-03 10:30:28 +01:00
nativeBuildInputs = [
pkg-config
];
2020-04-11 21:04:24 +01:00
2024-10-03 10:30:28 +01:00
buildInputs =
[
openssl
]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
Security
SystemConfiguration
CoreServices
]
);
2020-04-11 21:04:24 +01:00
checkType = "debug";
2023-06-19 12:14:56 +01:00
passthru.updateScript = nix-update-script { };
2020-04-11 21:04:24 +01:00
2023-06-19 12:14:56 +01: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 10:30:28 +01:00
meta = {
2020-04-11 21:04:24 +01: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 10:30:28 +01:00
license = lib.licenses.asl20;
platforms = lib.platforms.all;
maintainers = with lib.maintainers; [ bot-wxt1221 ];
2020-04-11 21:04:24 +01:00
};
}