10 rustPlatform.buildRustPackage rec {
14 src = fetchFromGitHub {
18 hash = "sha256-stZWTzrRk+dyscV+OtL5aEOv+MLrN3bMSIrhrZXmCfc=";
21 cargoHash = "sha256-pexYgL3gSeuglAQWn09nXgxQCUX+TFvnFU0uiwHEfzk=";
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"
47 nativeBuildInputs = [ ruby which ]
48 ++ lib.optional stdenv.isDarwin rustPlatform.bindgenHook;
50 passthru.updateScript = nix-update-script { };
53 homepage = "https://rbspy.github.io/";
55 A Sampling CPU Profiler for Ruby.
57 license = licenses.mit;
58 maintainers = with maintainers; [ viraptor ];
59 platforms = platforms.linux ++ platforms.darwin;