@@ -0,0 +1,41 @@
1+{ lib
2+, rustPlatform
3+, fetchFromGitHub
4+, nix-update-script
5+, pkg-config
6+, openssl
7+}:
8+
9+rustPlatform.buildRustPackage rec {
10+ pname = "cargo-msrv";
11+ version = "0.4.0";
12+
13+ src = fetchFromGitHub {
14+ owner = "foresterre";
15+ repo = pname;
16+ rev = "v${version}";
17+ sha256 = "1ynv5d2rxlc1gzq93v8qjyl5063w7q42g9m95250yh2lmf9hdj5i";
18+ };
19+
20+ cargoSha256 = "03rphdps17gzcmf8n5w14x5i5rjnfznsl150s3cz5vzhbmnlpszf";
21+
22+ passthru = {
23+ updateScript = nix-update-script {
24+ attrPath = pname;
25+ };
26+ };
27+
28+ # Integration tests fail
29+ doCheck = false;
30+
31+ buildInputs = [ openssl ];
32+
33+ nativeBuildInputs = [ pkg-config ];
34+
35+ meta = with lib; {
36+ description = "Cargo subcommand \"msrv\": assists with finding your minimum supported Rust version (MSRV)";
37+ homepage = "https://github.com/foresterre/cargo-msrv";
38+ license = with licenses; [ asl20 /* or */ mit ];
39+ maintainers = with maintainers; [ otavio ];
40+ };
41+}