Commit fa7786d7 authored by figsoda's avatar figsoda
Browse files
parent ace2a9ab
Loading
Loading
Loading
Loading
+12 −15
Original line number Diff line number Diff line
{ fetchCrate, lib, rustPlatform }:
{ lib, rustPlatform, fetchFromGitHub }:

rustPlatform.buildRustPackage rec {
  pname = "inferno";
  version = "0.11.7";
  version = "0.11.14";

  # github version doesn't have a Cargo.lock
  src = fetchCrate {
    inherit pname version;
    sha256 = "sha256-HZBCLgWC9yEo3lY7If18SILKZV3rwHv7FBVdumiTbJg=";
  src = fetchFromGitHub {
    owner = "jonhoo";
    repo = pname;
    rev = "v${version}";
    hash = "sha256-0H+h4BM4x3vlI6EMeXNzcCQpW2S4czJR2GaviZ0nhEM=";
    fetchSubmodules = true;
  };

  cargoSha256 = "sha256-upO+G9569NXFuc2vpxR6E4nxJqCjg+RMlxV7oKb7v1E=";
  cargoHash = "sha256-5VQNgZUgakQUczKs7T+c305c3I1DDSaVMO3tFXqIdIc=";

  # these tests depend on a patched version of flamegraph which is included in
  # the github repository as a submodule, but absent from the crates version
  # skip flaky tests
  checkFlags = [
    "--skip=collapse::dtrace::tests::test_collapse_multi_dtrace"
    "--skip=collapse::dtrace::tests::test_collapse_multi_dtrace_simple"
    "--skip=collapse::perf::tests::test_collapse_multi_perf"
    "--skip=collapse::perf::tests::test_collapse_multi_perf_simple"
    "--skip=collapse::perf::tests::test_multiple_skip_after"
    "--skip=collapse::perf::tests::test_one_skip_after"
    "--skip=flamegraph_base_symbol"
    "--skip=flamegraph_multiple_base_symbol"
  ];

  meta = with lib; {