whispers 2026-06-03 12:13:12 -04:00
commit f9c51806df
No known key found for this signature in database

View file

@ -13,7 +13,7 @@
rustPlatform.buildRustPackage (finalAttrs: {
pname = "arti";
version = "2.3.0";
version = "2.4.0";
src = fetchFromGitLab {
domain = "gitlab.torproject.org";
@ -21,7 +21,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
owner = "core";
repo = "arti";
tag = "arti-v${finalAttrs.version}";
hash = "sha256-OEGKjYJ3p4g0ZfeK6k8IJJPjgSBMrSlKlxsCw1OwyaI=";
hash = "sha256-YLOdrHstmN2pLl75uclkbpN5h3iBs3xpraZ8XN6R/+Q=";
};
# Working around a bug in cargo that appears with cargo-auditable, see
@ -31,22 +31,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
--replace-fail '"tor-rpcbase"' '"dep:tor-rpcbase"'
'';
cargoHash = "sha256-OJgrIXL185W9rcQd7XZsgiqN4in74Oc2jDT1ZmcCC6E=";
buildAndTestSubdir = "crates/arti";
cargoHash = "sha256-7X3JJbt0/jxaMvBR3XQvguR7tqd96kiqX66G2byvPjM=";
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
buildInputs = [ sqlite ] ++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ];
cargoBuildFlags = [
"--package"
"arti"
];
cargoTestFlags = [
"--package"
"arti"
];
# `full` includes all stable and non-conflicting feature flags. the primary
# downsides are increased binary size and memory usage for building, but
# those are acceptable for nixpkgs
@ -69,9 +59,7 @@ rustPlatform.buildRustPackage (finalAttrs: {
# sandbox. this does NOT affect downstream users of Arti.
env.ARTI_FS_DISABLE_PERMISSION_CHECKS = 1;
nativeInstallCheckInputs = [
versionCheckHook
];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru = {
@ -84,10 +72,12 @@ rustPlatform.buildRustPackage (finalAttrs: {
mainProgram = "arti";
homepage = "https://arti.torproject.org/";
changelog = "https://gitlab.torproject.org/tpo/core/arti/-/blob/arti-v${finalAttrs.version}/CHANGELOG.md";
license = with lib.licenses; [
asl20
mit
];
license =
with lib.licenses;
OR [
asl20
mit
];
maintainers = with lib.maintainers; [
rapiteanu
whispersofthedawn