bcb2f287e1
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
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.3";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.torproject.org";
|
|
group = "tpo";
|
|
owner = "core";
|
|
repo = "arti";
|
|
rev = "arti-v${version}";
|
|
hash = "sha256-1+Wt2qhwYrkU50lGuL55UnCpFF+ROV2fzFwFDP1eHjo=";
|
|
};
|
|
|
|
cargoHash = "sha256-vuEs1mtrn4fXwBpvPsQr3z6hTAlggVsPUK3ZZ2DmhEs=";
|
|
|
|
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 = "Implementation of Tor in Rust";
|
|
mainProgram = "arti";
|
|
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; [ ];
|
|
};
|
|
}
|