10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-K5zDM7HhSNklCMoj3yh5lf0HTITOl2UYXW0QCxDF2GU=";
21 cargoHash = "sha256-2yYv7Pp6UqHTPrmG4BM0py3GoPYYJW7e9LQSrgxx/3A=";
23 # error: linker `aarch64-linux-gnu-gcc` not found
30 # The current implementation of rbspy fails to detect the version of ruby
31 # from nixpkgs during tests.
33 substituteInPlace src/core/process.rs \
34 --replace /usr/bin/which '${which}/bin/which'
35 substituteInPlace src/sampler/mod.rs \
36 --replace /usr/bin/which '${which}/bin/which'
40 "--skip=test_get_trace"
41 "--skip=test_get_trace_when_process_has_exited"
42 "--skip=test_sample_single_process"
43 "--skip=test_sample_single_process_with_time_limit"
44 "--skip=test_sample_subprocesses"
50 ] ++ lib.optional stdenv.hostPlatform.isDarwin rustPlatform.bindgenHook;
52 passthru.updateScript = nix-update-script { };
55 homepage = "https://rbspy.github.io/";
56 description = "Sampling CPU Profiler for Ruby";
57 mainProgram = "rbspy";
58 changelog = "https://github.com/rbspy/rbspy/releases/tag/v${version}";
59 license = licenses.mit;
60 maintainers = with maintainers; [ viraptor ];
61 platforms = platforms.linux ++ platforms.darwin;