10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
17 rev = "refs/tags/v${version}";
18 hash = "sha256-2+miC7cp6YbeI7uucFlSdlDpPboJOhhBq7/eqXxZVqs=";
21 cargoHash = "sha256-I+nh6cKniPIG5VYMMsABZNSP/c3DLWswsjenaQBh/X8=";
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.isDarwin rustPlatform.bindgenHook;
52 passthru.updateScript = nix-update-script { };
55 homepage = "https://rbspy.github.io/";
56 description = "A 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;