Skip to content

Commit

Permalink
Merge pull request #220103 from viraptor/ruby-dtrace-linux
Browse files Browse the repository at this point in the history
ruby_3_1,ruby_3_0,ruby_2_7: allow enabling dtrace support on linux
  • Loading branch information
viraptor authored Mar 11, 2023
2 parents d65d457 + c1a2a95 commit 4f6f5f4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkgs/development/interpreters/ruby/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
, buildEnv, bundler, bundix
, makeWrapper, buildRubyGem, defaultGemConfig, removeReferencesTo
, openssl, openssl_1_1
, linuxPackages, libsystemtap
} @ args:

let
Expand Down Expand Up @@ -34,6 +35,7 @@ let
, libyaml, yamlSupport ? true
, libffi, fiddleSupport ? true
, jemalloc, jemallocSupport ? false
, linuxPackages, systemtap ? linuxPackages.systemtap, libsystemtap, dtraceSupport ? false
# By default, ruby has 3 observed references to stdenv.cc:
#
# - If you run:
Expand Down Expand Up @@ -71,6 +73,7 @@ let

nativeBuildInputs = [ autoreconfHook bison ]
++ (op docSupport groff)
++ (ops (dtraceSupport && stdenv.isLinux) [ systemtap libsystemtap ])
++ op useBaseRuby baseRuby;
buildInputs = [ autoconf ]
++ (op fiddleSupport libffi)
Expand Down Expand Up @@ -141,6 +144,7 @@ let
(lib.enableFeature true "pthread")
(lib.withFeatureAs true "soname" "ruby-${version}")
(lib.withFeatureAs useBaseRuby "baseruby" "${baseRuby}/bin/ruby")
(lib.enableFeature dtraceSupport "dtrace")
(lib.enableFeature jitSupport "jit-support")
(lib.enableFeature docSupport "install-doc")
(lib.withFeature jemallocSupport "jemalloc")
Expand Down

0 comments on commit 4f6f5f4

Please sign in to comment.