rbspy: 0.27.0 -> 0.28.0 (#370812)

This commit is contained in:
Stanisław Pitucha
2025-01-05 07:56:58 +11:00
committed by GitHub
+9 -5
View File
@@ -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 { };