Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / by-name / bu / bugstalker / package.nix
blobccbf397e71d93406f0376bf6c1055370e3c4807d
1 { lib
2 , rustPlatform
3 , fetchFromGitHub
4 , pkg-config
5 , libunwind
6 }:
8 rustPlatform.buildRustPackage rec {
9   pname = "bugstalker";
10   version = "0.1.4";
12   src = fetchFromGitHub {
13     owner = "godzie44";
14     repo = "BugStalker";
15     rev = "v${version}";
16     hash = "sha256-16bmvz6/t8H8Sx/32l+fp3QqP5lwi0o1Q9KqDHqF22U=";
17   };
19   cargoHash = "sha256-kp0GZ0cM57BMpH/8lhxevnBuJhUSH0rtxP4B/9fXYiU=";
21   buildInputs = [ libunwind ];
23   nativeBuildInputs = [ pkg-config ];
25   # Tests which require access to example source code fail in the sandbox. I
26   # haven't managed to figure out how to fix this.
27   checkFlags = [
28     "--skip=breakpoints::test_breakpoint_at_fn_with_monomorphization"
29     "--skip=breakpoints::test_breakpoint_at_line_with_monomorphization"
30     "--skip=breakpoints::test_brkpt_on_function"
31     "--skip=breakpoints::test_brkpt_on_function_name_collision"
32     "--skip=breakpoints::test_brkpt_on_line"
33     "--skip=breakpoints::test_brkpt_on_line2"
34     "--skip=breakpoints::test_brkpt_on_line_collision"
35     "--skip=breakpoints::test_debugee_run"
36     "--skip=breakpoints::test_deferred_breakpoint"
37     "--skip=breakpoints::test_multiple_brkpt_on_addr"
38     "--skip=breakpoints::test_set_breakpoint_idempotence"
39     "--skip=io::test_backtrace"
40     "--skip=io::test_read_register_write"
41     "--skip=io::test_read_value_u64"
42     "--skip=multithreaded::test_multithreaded_app_running"
43     "--skip=multithreaded::test_multithreaded_backtrace"
44     "--skip=multithreaded::test_multithreaded_breakpoints"
45     "--skip=multithreaded::test_multithreaded_trace"
46     "--skip=signal::test_signal_stop_multi_thread"
47     "--skip=signal::test_signal_stop_multi_thread_multiple_signal"
48     "--skip=signal::test_signal_stop_single_thread"
49     "--skip=signal::test_transparent_signals"
50     "--skip=steps::test_step_into"
51     "--skip=steps::test_step_into_recursion"
52     "--skip=steps::test_step_out"
53     "--skip=steps::test_step_over"
54     "--skip=steps::test_step_over_inline_code"
55     "--skip=steps::test_step_over_on_fn_decl"
56     "--skip=symbol::test_symbol"
57     "--skip=test_debugger_disassembler"
58     "--skip=test_debugger_graceful_shutdown"
59     "--skip=test_debugger_graceful_shutdown_multithread"
60     "--skip=test_frame_cfa"
61     "--skip=test_registers"
62     "--skip=variables::test_arguments"
63     "--skip=variables::test_btree_map"
64     "--skip=variables::test_cast_pointers"
65     "--skip=variables::test_cell"
66     "--skip=variables::test_circular_ref_types"
67     "--skip=variables::test_lexical_blocks"
68     "--skip=variables::test_read_array"
69     "--skip=variables::test_read_atomic"
70     "--skip=variables::test_read_btree_set"
71     "--skip=variables::test_read_closures"
72     "--skip=variables::test_read_enum"
73     "--skip=variables::test_read_hashmap"
74     "--skip=variables::test_read_hashset"
75     "--skip=variables::test_read_only_local_variables"
76     "--skip=variables::test_read_pointers"
77     "--skip=variables::test_read_scalar_variables"
78     "--skip=variables::test_read_scalar_variables_at_place"
79     "--skip=variables::test_read_static_in_fn_variable"
80     "--skip=variables::test_read_static_variables"
81     "--skip=variables::test_read_static_variables_different_modules"
82     "--skip=variables::test_read_strings"
83     "--skip=variables::test_read_struct"
84     "--skip=variables::test_read_tls_variables"
85     "--skip=variables::test_read_type_alias"
86     "--skip=variables::test_read_union"
87     "--skip=variables::test_read_uuid"
88     "--skip=variables::test_read_vec_and_slice"
89     "--skip=variables::test_read_vec_deque"
90     "--skip=variables::test_shared_ptr"
91     "--skip=variables::test_slice_operator"
92     "--skip=variables::test_type_parameters"
93     "--skip=variables::test_zst_types"
94   ];
96   meta = {
97     description = "Rust debugger for Linux x86-64";
98     homepage = "https://github.com/godzie44/BugStalker";
99     license = lib.licenses.mit;
100     maintainers = with lib.maintainers; [ jacg ];
101     mainProgram = "bs";
102     platforms = [ "x86_64-linux" ];
103   };