tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
cargo-msrv: add rustup to propagatedBuildInputs
Stéphan Kochen
4 years ago
ddb000cb
12fc0f19
+8
-1
1 changed file
expand all
collapse all
unified
split
pkgs
development
tools
rust
cargo-msrv
default.nix
+8
-1
pkgs/development/tools/rust/cargo-msrv/default.nix
···
3
3
, fetchFromGitHub
4
4
, nix-update-script
5
5
, pkg-config
6
6
+
, rustup
6
7
, openssl
7
8
, stdenv
8
9
, libiconv
9
10
, Security
11
11
+
, makeWrapper
10
12
}:
11
13
12
14
rustPlatform.buildRustPackage rec {
···
35
37
then [ libiconv Security ]
36
38
else [ openssl ];
37
39
38
38
-
nativeBuildInputs = [ pkg-config ];
40
40
+
nativeBuildInputs = [ pkg-config makeWrapper ];
41
41
+
42
42
+
# Depends at run-time on having rustup in PATH
43
43
+
postInstall = ''
44
44
+
wrapProgram $out/bin/cargo-msrv --prefix PATH : ${lib.makeBinPath [ rustup ]};
45
45
+
'';
39
46
40
47
meta = with lib; {
41
48
description = "Cargo subcommand \"msrv\": assists with finding your minimum supported Rust version (MSRV)";