rbspy: fix tests in macos sandbox

This commit is contained in:
Stanisław Pitucha
2025-01-04 20:55:17 +11:00
parent f46d50213b
commit de8b2a6772
+6 -2
View File
@@ -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 { };