cargo-valgrind: 2.2.1 -> 2.3.1

This commit is contained in:
Christoph Jabs 2025-05-20 09:17:22 +03:00
parent ab8e5cefd6
commit ebcc70174c
No known key found for this signature in database
GPG key ID: 217C6A439646D51E

View file

@ -6,35 +6,36 @@
makeWrapper, makeWrapper,
valgrind, valgrind,
}: }:
rustPlatform.buildRustPackage rec { rustPlatform.buildRustPackage rec {
pname = "cargo-valgrind"; pname = "cargo-valgrind";
version = "2.2.1"; version = "2.3.1";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "jfrimmel"; owner = "jfrimmel";
repo = "cargo-valgrind"; repo = "cargo-valgrind";
tag = version; tag = version;
sha256 = "sha256-yUCDKklkfK+2n+THH4QlHb+FpeWfObXpmp4VozsFiUM="; sha256 = "sha256-gr/s2dYCFmhwfXT3tqWPFpXQK2QaAhL7Aqnn1A3KjJI=";
}; };
useFetchCargoVendor = true; useFetchCargoVendor = true;
cargoHash = "sha256-nTqdsi+5YmOzQ5DPn3jOfUXUUut9uo5xKyx/R2MjV1A="; cargoHash = "sha256-iNsGrbncZwCHXn/xuiI4Mw4F3FFWswEhwpIMI0xcFgU=";
passthru = { passthru = {
updateScript = nix-update-script { }; updateScript = nix-update-script { };
}; };
nativeBuildInputs = [ makeWrapper ]; nativeBuildInputs = [
makeWrapper
valgrind # for tests where the executable is not wrapped yet
];
postInstall = '' postInstall = ''
wrapProgram $out/bin/cargo-valgrind --prefix PATH : ${lib.makeBinPath [ valgrind ]} wrapProgram $out/bin/cargo-valgrind --prefix PATH : ${lib.makeBinPath [ valgrind ]}
''; '';
checkFlags = [ checkFlags = [
"--skip examples_are_runnable"
"--skip tests_are_runnable" "--skip tests_are_runnable"
"--skip issue74" "--skip default_cargo_project_reports_no_violations"
]; ];
meta = with lib; { meta = with lib; {