cargo-msrv: add rustup to propagatedBuildInputs

+8 -1
+8 -1
pkgs/development/tools/rust/cargo-msrv/default.nix
··· 3 3 , fetchFromGitHub 4 4 , nix-update-script 5 5 , pkg-config 6 + , rustup 6 7 , openssl 7 8 , stdenv 8 9 , libiconv 9 10 , Security 11 + , makeWrapper 10 12 }: 11 13 12 14 rustPlatform.buildRustPackage rec { ··· 35 37 then [ libiconv Security ] 36 38 else [ openssl ]; 37 39 38 - nativeBuildInputs = [ pkg-config ]; 40 + nativeBuildInputs = [ pkg-config makeWrapper ]; 41 + 42 + # Depends at run-time on having rustup in PATH 43 + postInstall = '' 44 + wrapProgram $out/bin/cargo-msrv --prefix PATH : ${lib.makeBinPath [ rustup ]}; 45 + ''; 39 46 40 47 meta = with lib; { 41 48 description = "Cargo subcommand \"msrv\": assists with finding your minimum supported Rust version (MSRV)";