8ac5e011d6
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
16 lines
466 B
Nix
16 lines
466 B
Nix
{ lib, rustPlatform, runCommandNoCC, makeWrapper }:
|
|
|
|
lib.makeOverridable ({
|
|
unwrapped,
|
|
pname ? "rust-analyzer",
|
|
version ? unwrapped.version,
|
|
rustcSrc ? rustPlatform.rustcSrc,
|
|
}: runCommandNoCC "${pname}-${version}" {
|
|
inherit pname version;
|
|
inherit (unwrapped) src meta;
|
|
nativeBuildInputs = [ makeWrapper ];
|
|
} ''
|
|
mkdir -p $out/bin
|
|
makeWrapper ${unwrapped}/bin/rust-analyzer $out/bin/rust-analyzer \
|
|
--set-default RUST_SRC_PATH "${rustcSrc}"
|
|
'')
|