nixpkgs/pkgs/tools/security/arti/default.nix

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

51 lines
1.3 KiB
Nix
Raw Normal View History

2022-06-29 05:20:00 +01:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitLab
, pkg-config
, sqlite
, openssl
, CoreServices
}:
rustPlatform.buildRustPackage rec {
pname = "arti";
version = "1.2.7";
2022-06-29 05:20:00 +01:00
src = fetchFromGitLab {
domain = "gitlab.torproject.org";
group = "tpo";
owner = "core";
repo = "arti";
rev = "arti-v${version}";
hash = "sha256-lyko4xwTn03/Es8icOx8GIrjC4XDXvZPDYHYILw8Opo=";
2022-06-29 05:20:00 +01:00
};
cargoHash = "sha256-I45SaawWAK7iTZDFhJT4YVO439D/3NmWLp3FtFmhLC0=";
2022-06-29 05:20:00 +01:00
nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ];
2022-06-29 05:20:00 +01:00
buildInputs = [ sqlite ]
++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ];
2022-06-29 05:20:00 +01:00
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"
];
2022-06-29 05:20:00 +01:00
meta = with lib; {
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";
2022-06-29 05:20:00 +01:00
license = with licenses; [ asl20 /* or */ mit ];
maintainers = [ ];
2022-06-29 05:20:00 +01:00
};
}