mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 01:13:05 +00:00
26de7d1cbf
Update the package to the latest version. Remove from skipped 1 test that was fixed.
66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitLab,
|
|
pkg-config,
|
|
sqlite,
|
|
openssl,
|
|
darwin,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "arti";
|
|
version = "1.2.8";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.torproject.org";
|
|
group = "tpo";
|
|
owner = "core";
|
|
repo = "arti";
|
|
rev = "arti-v${version}";
|
|
hash = "sha256-vw/hebZ23Pk+hQx3YN9iXsKWq20fqpwp91E2tul8zmA=";
|
|
};
|
|
|
|
cargoHash = "sha256-4F+0KEVoeppNQ26QQ+a2CSIbrklE8NY3+OK11I5JstA=";
|
|
|
|
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
|
|
|
|
buildInputs =
|
|
[ sqlite ]
|
|
++ lib.optionals stdenv.isLinux [ openssl ]
|
|
++ lib.optionals stdenv.isDarwin (
|
|
with darwin.apple_sdk.frameworks;
|
|
[
|
|
CoreServices
|
|
]
|
|
);
|
|
|
|
cargoBuildFlags = [
|
|
"--package"
|
|
"arti"
|
|
];
|
|
|
|
cargoTestFlags = [
|
|
"--package"
|
|
"arti"
|
|
];
|
|
|
|
checkFlags = [
|
|
# problematic test that hangs the build
|
|
"--skip=reload_cfg::test::watch_multiple"
|
|
];
|
|
|
|
meta = {
|
|
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 lib.licenses; [
|
|
asl20
|
|
mit
|
|
];
|
|
maintainers = with lib.maintainers; [ rapiteanu ];
|
|
};
|
|
}
|