nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 rustPlatform,
4 fetchPypi,
5 buildPythonPackage,
6}:
7
8buildPythonPackage rec {
9 pname = "ipv8-rust-tunnels";
10 version = "0.1.44";
11 pyproject = true;
12
13 src = fetchPypi {
14 inherit version;
15 pname = "ipv8_rust_tunnels";
16 hash = "sha256-eHk8aCrcnyVGd3JRGQ950Bwryqt+TYx84MHAM2kWTis=";
17 };
18
19 cargoDeps = rustPlatform.fetchCargoVendor {
20 inherit pname version src;
21 hash = "sha256-axWG5cJtNaoZl7cG+Zyo1k+eA8pXHDWFgHqpTmQNHlo=";
22 };
23
24 nativeBuildInputs = with rustPlatform; [
25 cargoSetupHook
26 maturinBuildHook
27 ];
28
29 meta = {
30 description = "A set of performance enhancements to the TunnelCommunity, the anonymization layer used in IPv8 and Tribler";
31 homepage = "https://github.com/Tribler/ipv8-rust-tunnels";
32 license = lib.licenses.lgpl3Only;
33 maintainers = with lib.maintainers; [ mlaradji ];
34 };
35}