forked from mirrors/nixpkgs
3024489185
Diff: https://gitlab.torproject.org/tpo/core/arti/-/compare/arti-v1.1.4...arti-v1.1.5 Changelog: https://gitlab.torproject.org/tpo/core/arti/-/raw/arti-v1.1.5/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.1.5";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.torproject.org";
|
|
group = "tpo";
|
|
owner = "core";
|
|
repo = "arti";
|
|
rev = "arti-v${version}";
|
|
sha256 = "sha256-FrawcoE+cUhRq9NPpSspUuk0ZPjnJcmDHD25syV/18E=";
|
|
};
|
|
|
|
cargoHash = "sha256-34qNdizJ89fo/6AQXuB8FqvYSv/Zy5N+gXX9Yl5sywM=";
|
|
|
|
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://gitlab.torproject.org/tpo/core/arti";
|
|
changelog = "https://gitlab.torproject.org/tpo/core/arti/-/raw/${src.rev}/CHANGELOG.md";
|
|
license = with licenses; [ asl20 /* or */ mit ];
|
|
maintainers = with maintainers; [ marsam ];
|
|
};
|
|
}
|