mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-05 13:23:17 +00:00
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.13";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.torproject.org";
|
|
group = "tpo";
|
|
owner = "core";
|
|
repo = "arti";
|
|
rev = "arti-v${version}";
|
|
hash = "sha256-Afbys0ChT1640PfKnAH/0Knl2IfKcrsCqqoxryFDPo0=";
|
|
};
|
|
|
|
cargoHash = "sha256-Y4JpVQU1wVwCWWaE5HMT+SaoRpmqzzhZjefbOOwPPRg=";
|
|
|
|
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 ];
|
|
};
|
|
}
|