tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
rust-analyzer/wrapper: format
Austin Horstman
1 year ago
8991722d
cbaf11a2
+19
-13
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
rust
rust-analyzer
wrapper.nix
+19
-13
pkgs/development/tools/rust/rust-analyzer/wrapper.nix
···
1
1
-
{ rustPlatform, runCommand, makeWrapper, rust-analyzer-unwrapped
2
2
-
, pname ? "rust-analyzer"
3
3
-
, version ? rust-analyzer-unwrapped.version
1
1
+
{
2
2
+
rustPlatform,
3
3
+
runCommand,
4
4
+
makeWrapper,
5
5
+
rust-analyzer-unwrapped,
6
6
+
pname ? "rust-analyzer",
7
7
+
version ? rust-analyzer-unwrapped.version,
4
8
# Use name from `RUST_SRC_PATH`
5
5
-
, rustSrc ? rustPlatform.rustLibSrc
9
9
+
rustSrc ? rustPlatform.rustLibSrc,
6
10
}:
7
7
-
runCommand "${pname}-${version}" {
8
8
-
inherit pname version;
9
9
-
inherit (rust-analyzer-unwrapped) src meta;
10
10
-
nativeBuildInputs = [ makeWrapper ];
11
11
-
} ''
12
12
-
mkdir -p $out/bin
13
13
-
makeWrapper ${rust-analyzer-unwrapped}/bin/rust-analyzer $out/bin/rust-analyzer \
14
14
-
--set-default RUST_SRC_PATH "${rustSrc}"
15
15
-
''
11
11
+
runCommand "${pname}-${version}"
12
12
+
{
13
13
+
inherit pname version;
14
14
+
inherit (rust-analyzer-unwrapped) src meta;
15
15
+
nativeBuildInputs = [ makeWrapper ];
16
16
+
}
17
17
+
''
18
18
+
mkdir -p $out/bin
19
19
+
makeWrapper ${rust-analyzer-unwrapped}/bin/rust-analyzer $out/bin/rust-analyzer \
20
20
+
--set-default RUST_SRC_PATH "${rustSrc}"
21
21
+
''