|
5 | 5 | , buildEnv, bundler, bundix |
6 | 6 | , makeWrapper, buildRubyGem, defaultGemConfig, removeReferencesTo |
7 | 7 | , openssl, openssl_1_1 |
| 8 | +, linuxPackages, libsystemtap |
8 | 9 | } @ args: |
9 | 10 |
|
10 | 11 | let |
|
34 | 35 | , libyaml, yamlSupport ? true |
35 | 36 | , libffi, fiddleSupport ? true |
36 | 37 | , jemalloc, jemallocSupport ? false |
| 38 | + , linuxPackages, systemtap ? linuxPackages.systemtap, libsystemtap, dtraceSupport ? false |
37 | 39 | # By default, ruby has 3 observed references to stdenv.cc: |
38 | 40 | # |
39 | 41 | # - If you run: |
|
71 | 73 |
|
72 | 74 | nativeBuildInputs = [ autoreconfHook bison ] |
73 | 75 | ++ (op docSupport groff) |
| 76 | + ++ (ops (dtraceSupport && stdenv.isLinux) [ systemtap libsystemtap ]) |
74 | 77 | ++ op useBaseRuby baseRuby; |
75 | 78 | buildInputs = [ autoconf ] |
76 | 79 | ++ (op fiddleSupport libffi) |
|
141 | 144 | (lib.enableFeature true "pthread") |
142 | 145 | (lib.withFeatureAs true "soname" "ruby-${version}") |
143 | 146 | (lib.withFeatureAs useBaseRuby "baseruby" "${baseRuby}/bin/ruby") |
| 147 | + (lib.enableFeature dtraceSupport "dtrace") |
144 | 148 | (lib.enableFeature jitSupport "jit-support") |
145 | 149 | (lib.enableFeature docSupport "install-doc") |
146 | 150 | (lib.withFeature jemallocSupport "jemalloc") |
|
0 commit comments