summary refs log tree commit diff
path: root/pkgs/development/tools/rust/cargo-modules/default.nix
diff options
context:
space:
mode:
authorfigsoda <figsoda@pm.me>2022-10-18 10:42:33 -0400
committerfigsoda <figsoda@pm.me>2022-10-18 10:42:33 -0400
commita2474ce493d33b9439f6b0170ce28a50b2ac518c (patch)
tree4120cf3eb53513ea2f869cfc0660717aeb0bb4b7 /pkgs/development/tools/rust/cargo-modules/default.nix
parentfcb6648102a7df48d71c7aa5dfd31673934a1eac (diff)
cargo-modules: 0.5.11 -> 0.5.12
Diffstat (limited to 'pkgs/development/tools/rust/cargo-modules/default.nix')
-rw-r--r--pkgs/development/tools/rust/cargo-modules/default.nix20
1 files changed, 9 insertions, 11 deletions
diff --git a/pkgs/development/tools/rust/cargo-modules/default.nix b/pkgs/development/tools/rust/cargo-modules/default.nix
index 04a9b05732c2f..5c5a210724a28 100644
--- a/pkgs/development/tools/rust/cargo-modules/default.nix
+++ b/pkgs/development/tools/rust/cargo-modules/default.nix
@@ -1,30 +1,28 @@
-{ lib, rustPlatform, fetchFromGitHub, stdenv, CoreFoundation, CoreServices }:
+{ lib, rustPlatform, fetchCrate, stdenv, CoreFoundation, CoreServices }:
 
 rustPlatform.buildRustPackage rec {
   pname = "cargo-modules";
-  version = "0.5.11";
+  version = "0.5.12";
 
-  src = fetchFromGitHub {
-    owner = "regexident";
-    repo = pname;
-    rev = version;
-    sha256 = "sha256-dxy46ls0n7j2uax+djqB9Zy/uGgV37w5K1Zc8Wzd1Vc=";
+  src = fetchCrate {
+    inherit pname version;
+    sha256 = "sha256-Fm3D1VnudZhXpH7ymQNpViwwODvXYeO/e2xT3XXfclk=";
   };
 
-  cargoSha256 = "sha256-2Q4pGnMo4FiPPGz2XXOv6+zB5DxHA8oEqztidO2Vvyw=";
+  cargoSha256 = "sha256-PiYonf+aD+Q3mWtP+7NDu9wu3vKrMRAlYh94fXLMWD8=";
 
   buildInputs = lib.optionals stdenv.isDarwin [
     CoreFoundation
     CoreServices
   ];
 
+  # the crate version doesn't include all the files required to run tests
+  doCheck = false;
+
   meta = with lib; {
     description = "A cargo plugin for showing a tree-like overview of a crate's modules";
     homepage = "https://github.com/regexident/cargo-modules";
     license = with licenses; [ mpl20 ];
-    # all tests fail with:
-    # thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: "tests run with disabled concurrency, automatic snapshot name generation is not supported.  Consider using the \"backtrace\" feature of insta which tries to recover test names from the call stack."', /private/tmp/nix-build-cargo-modules-0.5.9.drv-0/cargo-modules-0.5.9-vendor.tar.gz/insta/src/runtime.rs:908:22
-    broken = (stdenv.isDarwin && stdenv.isx86_64);
     maintainers = with maintainers; [ figsoda rvarago ];
   };
 }