From c6245bdfde58169a8908016ac8a402e446511cd4 Mon Sep 17 00:00:00 2001 From: figsoda Date: Tue, 3 Jan 2023 16:12:35 -0500 Subject: [PATCH] cargo-modules: 0.7.1 -> 0.7.2 Diff: https://github.com/regexident/cargo-modules/compare/0.7.1...0.7.2 Changelog: https://github.com/regexident/cargo-modules/blob/0.7.2/CHANGELOG.md --- .../tools/rust/cargo-modules/default.nix | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/pkgs/development/tools/rust/cargo-modules/default.nix b/pkgs/development/tools/rust/cargo-modules/default.nix index 69f0c4b814da..54290e2491f4 100644 --- a/pkgs/development/tools/rust/cargo-modules/default.nix +++ b/pkgs/development/tools/rust/cargo-modules/default.nix @@ -1,17 +1,26 @@ -{ lib, rustPlatform, fetchFromGitHub, stdenv, darwin }: +{ lib, rustPlatform, fetchFromGitHub, fetchpatch, stdenv, darwin }: rustPlatform.buildRustPackage rec { pname = "cargo-modules"; - version = "0.7.1"; + version = "0.7.2"; src = fetchFromGitHub { owner = "regexident"; repo = pname; rev = version; - sha256 = "sha256-vMmbed2UOe/N8V7LbvYm7BbOOHD69qaizkYf66VCZMs="; + sha256 = "sha256-QRBhlSHqOTJCdzZhqpcfLeCDuCfJsjyxa2+6yzzN52g="; }; - cargoSha256 = "sha256-xo3EUDWoE1OFTaA9y3ymGA/l2fwNqnPBLpNc8xyjasY="; + cargoSha256 = "sha256-+asFAkUOHP9u/nOoHsr81KeqQkLqaRXhJH32oTG5vYo="; + + cargoPatches = [ + # https://github.com/regexident/cargo-modules/pull/161; + (fetchpatch { + name = "update-outdated-lock-file.patsh"; + url = "https://github.com/regexident/cargo-modules/commit/ea9029b79acdadddbaf4067076690153c38cd09c.patch"; + sha256 = "sha256-DOLvo/PP+4/6i1IYbl9oGC6BAnXNI88hK5he9549EJk="; + }) + ]; buildInputs = lib.optionals stdenv.isDarwin [ darwin.apple_sdk.frameworks.CoreServices