From 6898e5e1c80ff1b4375a8b80ae6e2d5b80a451de Mon Sep 17 00:00:00 2001 From: nartsisss Date: Sat, 14 Dec 2024 03:58:39 +0300 Subject: [PATCH] cargo-modules: 0.20.2 -> 0.21.1 --- pkgs/by-name/ca/cargo-modules/package.nix | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/pkgs/by-name/ca/cargo-modules/package.nix b/pkgs/by-name/ca/cargo-modules/package.nix index b89478820144..2084275ec1ba 100644 --- a/pkgs/by-name/ca/cargo-modules/package.nix +++ b/pkgs/by-name/ca/cargo-modules/package.nix @@ -2,26 +2,20 @@ lib, rustPlatform, fetchFromGitHub, - stdenv, - darwin, + versionCheckHook, }: - rustPlatform.buildRustPackage rec { pname = "cargo-modules"; - version = "0.20.2"; + version = "0.21.1"; src = fetchFromGitHub { owner = "regexident"; repo = "cargo-modules"; - rev = "refs/tags/v${version}"; - hash = "sha256-GrkAEblelLWIGYdOlbRWNBibNnb+/eA3e8aM5+L7Z7g="; + tag = "v${version}"; + hash = "sha256-QVG/N+t6fify6I9uvLAqWLagmEnhd5i5Iz9HWdysmzk="; }; - cargoHash = "sha256-/CQWVrXwkg0xVFAC2nYHtGlWYxU2TIkCLb6+NgmarDw="; - - buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [ - darwin.apple_sdk.frameworks.CoreServices - ]; + cargoHash = "sha256-9SzM9jkAcnRctNedImoH+32hVAtPAkXLzxgmOo3Dcxc="; checkFlags = [ "--skip=cfg_test::with_tests::smoke" @@ -45,12 +39,17 @@ rustPlatform.buildRustPackage rec { "--skip=selection::no_modules::smoke" "--skip=selection::no_traits::smoke" "--skip=selection::no_types::smoke" + "--skip=selection::no_owns::smoke" ]; + nativeInstallCheckInputs = [ versionCheckHook ]; + doInstallCheck = true; + versionCheckProgramArg = [ "--version" ]; + meta = { description = "Cargo plugin for showing a tree-like overview of a crate's modules"; homepage = "https://github.com/regexident/cargo-modules"; - changelog = "https://github.com/regexident/cargo-modules/blob/${version}/CHANGELOG.md"; + changelog = "https://github.com/regexident/cargo-modules/blob/${src.tag}/CHANGELOG.md"; license = lib.licenses.mpl20; maintainers = with lib.maintainers; [ figsoda