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

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

44 lines
1.1 KiB
Nix
Raw Normal View History

2022-06-29 06:20:00 +02:00
{ lib
, stdenv
, rustPlatform
, fetchFromGitLab
, pkg-config
, sqlite
, openssl
, CoreServices
}:
rustPlatform.buildRustPackage rec {
pname = "arti";
2022-08-05 13:31:41 +02:00
version = "0.6.0";
2022-06-29 06:20:00 +02:00
src = fetchFromGitLab {
domain = "gitlab.torproject.org";
group = "tpo";
owner = "core";
repo = "arti";
rev = "arti-v${version}";
2022-08-05 13:31:41 +02:00
sha256 = "sha256-3zlpmOGCjox8dVItVxyQloPgC0+dYw57pFFBySAXC5g=";
2022-06-29 06:20:00 +02:00
};
2022-08-05 13:31:41 +02:00
cargoSha256 = "sha256-LvhSgJQyPyTSD1koXBXYaC6I5njZavgQK4WaW5/b9g4=";
2022-06-29 06:20:00 +02:00
nativeBuildInputs = lib.optionals stdenv.isLinux [ pkg-config ];
buildInputs = [ sqlite ]
++ lib.optionals stdenv.isLinux [ openssl ]
++ lib.optionals stdenv.isDarwin [ CoreServices ];
cargoBuildFlags = [ "--package" "arti" ];
cargoTestFlags = [ "--package" "arti" ];
meta = with lib; {
description = "An implementation of Tor in Rust";
homepage = "https://gitlab.torproject.org/tpo/core/arti";
changelog = "https://gitlab.torproject.org/tpo/core/arti/-/raw/${src.rev}/CHANGELOG.md";
license = with licenses; [ asl20 /* or */ mit ];
maintainers = with maintainers; [ marsam ];
};
}