From b2ec32e8ba23c37d69f147637755c35340d1b01e Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Wed, 21 Aug 2024 08:12:07 +0200 Subject: [PATCH] rye: format with nixfmt --- pkgs/by-name/ry/rye/package.nix | 52 ++++++++++++++++++++------------- 1 file changed, 32 insertions(+), 20 deletions(-) diff --git a/pkgs/by-name/ry/rye/package.nix b/pkgs/by-name/ry/rye/package.nix index c881e1d4f3a6..3719ae8988e8 100644 --- a/pkgs/by-name/ry/rye/package.nix +++ b/pkgs/by-name/ry/rye/package.nix @@ -1,14 +1,21 @@ -{ lib -, rustPlatform -, fetchFromGitHub -, installShellFiles -, pkg-config -, openssl -, stdenv -, darwin -, nix-update-script -, testers -, rye +{ + lib, + rustPlatform, + fetchFromGitHub, + + # nativeBuildInputs + installShellFiles, + pkg-config, + + # buildInputs + openssl, + stdenv, + darwin, + + # passthru + nix-update-script, + testers, + rye, }: rustPlatform.buildRustPackage rec { @@ -34,16 +41,21 @@ rustPlatform.buildRustPackage rec { OPENSSL_NO_VENDOR = 1; }; - nativeBuildInputs = [ installShellFiles pkg-config ]; + nativeBuildInputs = [ + installShellFiles + pkg-config + ]; - buildInputs = [ - openssl - ] - ++ lib.optionals stdenv.isDarwin (with darwin.apple_sdk; [ - frameworks.CoreServices - frameworks.SystemConfiguration - Libsystem - ]); + buildInputs = + [ openssl ] + ++ lib.optionals stdenv.isDarwin ( + with darwin.apple_sdk; + [ + frameworks.CoreServices + frameworks.SystemConfiguration + Libsystem + ] + ); postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd rye \