Unverified Commit ad4fca9f authored by Stanisław Pitucha's avatar Stanisław Pitucha Committed by GitHub
Browse files

rbspy: 0.27.0 -> 0.28.0 (#370812)

parents 4978575f de8b2a67
Loading
Loading
Loading
Loading
+9 −5
Original line number Diff line number Diff line
@@ -10,16 +10,16 @@

rustPlatform.buildRustPackage rec {
  pname = "rbspy";
  version = "0.27.0";
  version = "0.28.0";

  src = fetchFromGitHub {
    owner = "rbspy";
    repo = "rbspy";
    tag = "v${version}";
    hash = "sha256-K5zDM7HhSNklCMoj3yh5lf0HTITOl2UYXW0QCxDF2GU=";
    hash = "sha256-6tCTrplzoiimKvXEIXd2gUOXzcZ/eQ22npBqbVv0Nv0=";
  };

  cargoHash = "sha256-2yYv7Pp6UqHTPrmG4BM0py3GoPYYJW7e9LQSrgxx/3A=";
  cargoHash = "sha256-J+3v7O38+MhCoq1UKf0Sqaomw/SSu+JK3sWWv9rB6FI=";

  # error: linker `aarch64-linux-gnu-gcc` not found
  postPatch = ''
@@ -35,6 +35,8 @@ rustPlatform.buildRustPackage rec {
      --replace /usr/bin/which '${which}/bin/which'
    substituteInPlace src/sampler/mod.rs \
      --replace /usr/bin/which '${which}/bin/which'
    substituteInPlace src/core/ruby_spy.rs \
      --replace /usr/bin/ruby '${ruby}/bin/ruby'
  '';

  checkFlags = [
@@ -45,10 +47,12 @@ rustPlatform.buildRustPackage rec {
    "--skip=test_sample_subprocesses"
  ];

  nativeBuildInputs = [
  nativeBuildInputs = lib.optional stdenv.hostPlatform.isDarwin rustPlatform.bindgenHook;

  nativeCheckInputs = [
    ruby
    which
  ] ++ lib.optional stdenv.hostPlatform.isDarwin rustPlatform.bindgenHook;
  ];

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