Unverified Commit ebcc7017 authored by Christoph Jabs's avatar Christoph Jabs
Browse files

cargo-valgrind: 2.2.1 -> 2.3.1

parent ab8e5cef
Loading
Loading
Loading
Loading
+8 −7
Original line number Diff line number Diff line
@@ -6,35 +6,36 @@
  makeWrapper,
  valgrind,
}:

rustPlatform.buildRustPackage rec {
  pname = "cargo-valgrind";
  version = "2.2.1";
  version = "2.3.1";

  src = fetchFromGitHub {
    owner = "jfrimmel";
    repo = "cargo-valgrind";
    tag = version;
    sha256 = "sha256-yUCDKklkfK+2n+THH4QlHb+FpeWfObXpmp4VozsFiUM=";
    sha256 = "sha256-gr/s2dYCFmhwfXT3tqWPFpXQK2QaAhL7Aqnn1A3KjJI=";
  };

  useFetchCargoVendor = true;
  cargoHash = "sha256-nTqdsi+5YmOzQ5DPn3jOfUXUUut9uo5xKyx/R2MjV1A=";
  cargoHash = "sha256-iNsGrbncZwCHXn/xuiI4Mw4F3FFWswEhwpIMI0xcFgU=";

  passthru = {
    updateScript = nix-update-script { };
  };

  nativeBuildInputs = [ makeWrapper ];
  nativeBuildInputs = [
    makeWrapper
    valgrind # for tests where the executable is not wrapped yet
  ];

  postInstall = ''
    wrapProgram $out/bin/cargo-valgrind --prefix PATH : ${lib.makeBinPath [ valgrind ]}
  '';

  checkFlags = [
    "--skip examples_are_runnable"
    "--skip tests_are_runnable"
    "--skip issue74"
    "--skip default_cargo_project_reports_no_violations"
  ];

  meta = with lib; {