From 8991722d43adee2f0262f09dae37d518fd0de22d Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Fri, 15 Nov 2024 21:23:31 -0600 Subject: [PATCH] rust-analyzer/wrapper: format --- .../tools/rust/rust-analyzer/wrapper.nix | 32 +++++++++++-------- 1 file changed, 19 insertions(+), 13 deletions(-) diff --git a/pkgs/development/tools/rust/rust-analyzer/wrapper.nix b/pkgs/development/tools/rust/rust-analyzer/wrapper.nix index af0a2953edee..cfd03a62a601 100644 --- a/pkgs/development/tools/rust/rust-analyzer/wrapper.nix +++ b/pkgs/development/tools/rust/rust-analyzer/wrapper.nix @@ -1,15 +1,21 @@ -{ rustPlatform, runCommand, makeWrapper, rust-analyzer-unwrapped -, pname ? "rust-analyzer" -, version ? rust-analyzer-unwrapped.version +{ + rustPlatform, + runCommand, + makeWrapper, + rust-analyzer-unwrapped, + pname ? "rust-analyzer", + version ? rust-analyzer-unwrapped.version, # Use name from `RUST_SRC_PATH` -, rustSrc ? rustPlatform.rustLibSrc + rustSrc ? rustPlatform.rustLibSrc, }: -runCommand "${pname}-${version}" { - inherit pname version; - inherit (rust-analyzer-unwrapped) src meta; - nativeBuildInputs = [ makeWrapper ]; -} '' - mkdir -p $out/bin - makeWrapper ${rust-analyzer-unwrapped}/bin/rust-analyzer $out/bin/rust-analyzer \ - --set-default RUST_SRC_PATH "${rustSrc}" -'' +runCommand "${pname}-${version}" + { + inherit pname version; + inherit (rust-analyzer-unwrapped) src meta; + nativeBuildInputs = [ makeWrapper ]; + } + '' + mkdir -p $out/bin + makeWrapper ${rust-analyzer-unwrapped}/bin/rust-analyzer $out/bin/rust-analyzer \ + --set-default RUST_SRC_PATH "${rustSrc}" + ''