mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
67 lines
1.4 KiB
Nix
67 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
rustPlatform,
|
|
fetchFromGitLab,
|
|
pkg-config,
|
|
sqlite,
|
|
openssl,
|
|
darwin,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "arti";
|
|
version = "1.2.7";
|
|
|
|
src = fetchFromGitLab {
|
|
domain = "gitlab.torproject.org";
|
|
group = "tpo";
|
|
owner = "core";
|
|
repo = "arti";
|
|
rev = "arti-v${version}";
|
|
hash = "sha256-lyko4xwTn03/Es8icOx8GIrjC4XDXvZPDYHYILw8Opo=";
|
|
};
|
|
|
|
cargoHash = "sha256-I45SaawWAK7iTZDFhJT4YVO439D/3NmWLp3FtFmhLC0=";
|
|
|
|
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 tests that were fixed after the release
|
|
"--skip=reload_cfg::test::watch_single_file"
|
|
"--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 ];
|
|
};
|
|
}
|