![Mario Rodas](/assets/img/avatar_default.png)
Diff: https://gitlab.torproject.org/tpo/core/arti/-/compare/arti-v1.1.13...arti-v1.2.0 Changelog: https://gitlab.torproject.org/tpo/core/arti/-/blob/arti-v1.2.0/CHANGELOG.md
44 lines
1.1 KiB
Nix
44 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, rustPlatform
|
|
, fetchFromGitLab
|
|
, pkg-config
|
|
, sqlite
|
|
, openssl
|
|
, CoreServices
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "arti";
|
|
version = "1.2.0";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.torproject.org";
|
|
group = "tpo";
|
|
owner = "core";
|
|
repo = "arti";
|
|
rev = "arti-v${version}";
|
|
hash = "sha256-ba07btx3eorFiocRk1YbkkGcblgsWaMI14r1SaPNr9g=";
|
|
};
|
|
|
|
cargoHash = "sha256-+TVmmyjAFLDlnXMED0+S0M3VbGBRHds4C1GNyTGD4wI=";
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
|
|
|
|
buildInputs = [ sqlite ]
|
|
++ lib.optionals stdenv.isLinux [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin [ CoreServices ];
|
|
|
|
cargoBuildFlags = [ "--package" "arti" ];
|
|
|
|
cargoTestFlags = [ "--package" "arti" ];
|
|
|
|
meta = with lib; {
|
|
description = "An implementation of Tor in Rust";
|
|
homepage = "https://arti.torproject.org/";
|
|
changelog = "https://gitlab.torproject.org/tpo/core/arti/-/blob/${src.rev}/CHANGELOG.md";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ marsam ];
|
|
};
|
|
}
|