git.iko.soy/typeable/nixpkgs
on master help sign in
cargo-msrv: init at 0.4.0

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>

commit37bdc088ef06194353c0ebe7643267e3881afeb8 authorOtavio Salvador <otavio@ossystems.com.br> dateTue 27 Apr 2021, 20:42 (6 years ago) parented22da9
2 files changed+42
pkgs/development/tools/rust/cargo-msrv/default.nix+41 pkgs/top-level/all-packages.nix+1
pkgs/development/tools/rust/cargo-msrv/default.nixnew file+41
@@ -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+}
pkgs/top-level/all-packages.nix+1
@@ -11475,6 +11475,7 @@ in
1147511475 cargo-make = callPackage ../development/tools/rust/cargo-make {
1147611476 inherit (darwin.apple_sdk.frameworks) Security SystemConfiguration;
1147711477 };
11478+ cargo-msrv = callPackage ../development/tools/rust/cargo-msrv { };
1147811479 cargo-play = callPackage ../development/tools/rust/cargo-play { };
1147911480 cargo-raze = callPackage ../development/tools/rust/cargo-raze {
1148011481 inherit (darwin.apple_sdk.frameworks) Security;