rust-analyzer/wrapper: format

+19 -13
+19 -13
pkgs/development/tools/rust/rust-analyzer/wrapper.nix
··· 1 - { rustPlatform, runCommand, makeWrapper, rust-analyzer-unwrapped 2 - , pname ? "rust-analyzer" 3 - , version ? rust-analyzer-unwrapped.version 4 # Use name from `RUST_SRC_PATH` 5 - , rustSrc ? rustPlatform.rustLibSrc 6 }: 7 - runCommand "${pname}-${version}" { 8 - inherit pname version; 9 - inherit (rust-analyzer-unwrapped) src meta; 10 - nativeBuildInputs = [ makeWrapper ]; 11 - } '' 12 - mkdir -p $out/bin 13 - makeWrapper ${rust-analyzer-unwrapped}/bin/rust-analyzer $out/bin/rust-analyzer \ 14 - --set-default RUST_SRC_PATH "${rustSrc}" 15 - ''
··· 1 + { 2 + rustPlatform, 3 + runCommand, 4 + makeWrapper, 5 + rust-analyzer-unwrapped, 6 + pname ? "rust-analyzer", 7 + version ? rust-analyzer-unwrapped.version, 8 # Use name from `RUST_SRC_PATH` 9 + rustSrc ? rustPlatform.rustLibSrc, 10 }: 11 + runCommand "${pname}-${version}" 12 + { 13 + inherit pname version; 14 + inherit (rust-analyzer-unwrapped) src meta; 15 + nativeBuildInputs = [ makeWrapper ]; 16 + } 17 + '' 18 + mkdir -p $out/bin 19 + makeWrapper ${rust-analyzer-unwrapped}/bin/rust-analyzer $out/bin/rust-analyzer \ 20 + --set-default RUST_SRC_PATH "${rustSrc}" 21 + ''