diff --git a/pkgs/tools/security/arti/default.nix b/pkgs/by-name/ar/arti/package.nix similarity index 61% rename from pkgs/tools/security/arti/default.nix rename to pkgs/by-name/ar/arti/package.nix index 1e93dae95961..6185ec1c683f 100644 --- a/pkgs/tools/security/arti/default.nix +++ b/pkgs/by-name/ar/arti/package.nix @@ -1,11 +1,12 @@ -{ lib -, stdenv -, rustPlatform -, fetchFromGitLab -, pkg-config -, sqlite -, openssl -, CoreServices +{ + lib, + stdenv, + rustPlatform, + fetchFromGitLab, + pkg-config, + sqlite, + openssl, + darwin, }: rustPlatform.buildRustPackage rec { @@ -25,13 +26,25 @@ rustPlatform.buildRustPackage rec { nativeBuildInputs = lib.optionals stdenv.hostPlatform.isLinux [ pkg-config ]; - buildInputs = [ sqlite ] - ++ lib.optionals stdenv.hostPlatform.isLinux [ openssl ] - ++ lib.optionals stdenv.hostPlatform.isDarwin [ CoreServices ]; + buildInputs = + [ sqlite ] + ++ lib.optionals stdenv.isLinux [ openssl ] + ++ lib.optionals stdenv.isDarwin ( + with darwin.apple_sdk.frameworks; + [ + CoreServices + ] + ); - cargoBuildFlags = [ "--package" "arti" ]; + cargoBuildFlags = [ + "--package" + "arti" + ]; - cargoTestFlags = [ "--package" "arti" ]; + cargoTestFlags = [ + "--package" + "arti" + ]; checkFlags = [ # problematic tests that were fixed after the release @@ -39,12 +52,15 @@ rustPlatform.buildRustPackage rec { "--skip=reload_cfg::test::watch_multiple" ]; - meta = with lib; { + 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 licenses; [ asl20 /* or */ mit ]; - maintainers = [ ]; + license = with lib.licenses; [ + asl20 + mit + ]; + maintainers = with lib.maintainers; [ rapiteanu ]; }; } diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index a94db928309a..f5254a83b0fb 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -293,10 +293,6 @@ with pkgs; ares-rs = callPackage ../tools/security/ares-rs { }; - arti = callPackage ../tools/security/arti { - inherit (darwin.apple_sdk.frameworks) CoreServices; - }; - asn1c = callPackage ../development/compilers/asn1c { }; authz0 = callPackage ../tools/security/authz0 { };