nixpkgs/pkgs/by-name/ar/arti/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

66 lines
1.3 KiB
Nix
Raw Normal View History

2024-09-22 13:10:52 +00:00
{
lib,
stdenv,
rustPlatform,
fetchFromGitLab,
pkg-config,
sqlite,
openssl,
darwin,
2022-06-29 04:20:00 +00:00
}:
rustPlatform.buildRustPackage rec {
pname = "arti";
2024-11-01 14:07:54 +00:00
version = "1.3.0";
2022-06-29 04:20:00 +00:00
src = fetchFromGitLab {
domain = "gitlab.torproject.org";
group = "tpo";
owner = "core";
repo = "arti";
rev = "arti-v${version}";
2024-11-01 14:07:54 +00:00
hash = "sha256-zGaNA6LdW2jZ6NyySklFCsLm2b5xk44E8ecJDV393c4=";
2022-06-29 04:20:00 +00:00
};
2024-11-01 14:07:54 +00:00
cargoHash = "sha256-9BvIQdhY/7i0X8w6XJZZeWzxEfqJlquO/qOWvvhCWaA=";
2022-06-29 04:20:00 +00:00
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
2024-09-22 13:10:52 +00:00
buildInputs =
[ sqlite ]
++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin (
with darwin.apple_sdk.frameworks;
[
CoreServices
]
);
2022-06-29 04:20:00 +00:00
2024-09-22 13:10:52 +00:00
cargoBuildFlags = [
"--package"
"arti"
];
2022-06-29 04:20:00 +00:00
2024-09-22 13:10:52 +00:00
cargoTestFlags = [
"--package"
"arti"
];
2022-06-29 04:20:00 +00:00
checkFlags = [
# problematic test that hangs the build
"--skip=reload_cfg::test::watch_multiple"
];
meta = {
2022-06-29 04:20:00 +00:00
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; [
2024-09-22 13:10:52 +00:00
asl20
mit
];
2024-09-28 20:41:55 +00:00
maintainers = with lib.maintainers; [ rapiteanu ];
2022-06-29 04:20:00 +00:00
};
}