11 rustPlatform.buildRustPackage rec {
15 src = fetchFromGitLab {
16 domain = "gitlab.torproject.org";
20 rev = "arti-v${version}";
21 sha256 = "sha256-zzBfRZEwLNCYzcdOfeQ462r1kU22zmY0lvrPDJ5F4nE=";
24 cargoSha256 = "sha256-DpdnXmzs8oHLQ1aecrBduW0E08xtU6W4DGL+20Gz1+I=";
26 nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
28 buildInputs = [ sqlite ]
29 ++ lib.optionals stdenv.isLinux [ openssl ]
30 ++ lib.optionals stdenv.isDarwin [ CoreServices ];
32 cargoBuildFlags = [ "--package" "arti" ];
34 cargoTestFlags = [ "--package" "arti" ];
37 description = "An implementation of Tor in Rust";
38 homepage = "https://gitlab.torproject.org/tpo/core/arti";
39 changelog = "https://gitlab.torproject.org/tpo/core/arti/-/raw/${src.rev}/CHANGELOG.md";
40 license = with licenses; [ asl20 /* or */ mit ];
41 maintainers = with maintainers; [ marsam ];