14 rustPlatform.buildRustPackage rec {
18 src = fetchFromGitHub {
22 sha256 = "sha256-rmWPkxxrpVamYHII0xkZq62ubL3/jrcqXUvFH9VuNtg=";
25 cargoSha256 = "sha256-/Bspy94uIP/e4uJY8qo+UPK1tnPjglxiMWeYWx2qoHk=";
28 updateScript = gitUpdater {
30 ignoredVersions = ".(rc|beta).*";
34 # Integration tests fail
37 buildInputs = if stdenv.isDarwin
38 then [ libiconv Security ]
41 nativeBuildInputs = [ pkg-config makeWrapper ];
43 # Depends at run-time on having rustup in PATH
45 wrapProgram $out/bin/cargo-msrv --prefix PATH : ${lib.makeBinPath [ rustup ]};
49 description = "Cargo subcommand \"msrv\": assists with finding your minimum supported Rust version (MSRV)";
50 mainProgram = "cargo-msrv";
51 homepage = "https://github.com/foresterre/cargo-msrv";
52 license = with licenses; [ asl20 /* or */ mit ];
53 maintainers = with maintainers; [ otavio matthiasbeyer ];