summary refs log tree commit diff
path: root/pkgs/development/ruby-modules
diff options
context:
space:
mode:
authorMario Rodas <marsam@users.noreply.github.com>2023-06-11 04:20:00 +0000
committerMario Rodas <marsam@users.noreply.github.com>2023-06-11 04:20:00 +0000
commit76a2ed5ef537fc94aac1145a9c62d978376e6671 (patch)
tree3496a134f9fc80baee60ff410beb306e18082d95 /pkgs/development/ruby-modules
parent06611403c5aad7424ebe161bd9a6661020c9468d (diff)
downloadnixpkgs-76a2ed5ef537fc94aac1145a9c62d978376e6671.tar
nixpkgs-76a2ed5ef537fc94aac1145a9c62d978376e6671.tar.gz
nixpkgs-76a2ed5ef537fc94aac1145a9c62d978376e6671.tar.bz2
nixpkgs-76a2ed5ef537fc94aac1145a9c62d978376e6671.tar.lz
nixpkgs-76a2ed5ef537fc94aac1145a9c62d978376e6671.tar.xz
nixpkgs-76a2ed5ef537fc94aac1145a9c62d978376e6671.tar.zst
nixpkgs-76a2ed5ef537fc94aac1145a9c62d978376e6671.zip
buildRubyGem: only set NIX_CFLAGS_COMPILE on Ruby MRI
It's not needed on other implementations like JRuby
Diffstat (limited to 'pkgs/development/ruby-modules')
-rw-r--r--pkgs/development/ruby-modules/gem/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/ruby-modules/gem/default.nix b/pkgs/development/ruby-modules/gem/default.nix
index b8d4df1128a..7105663413a 100644
--- a/pkgs/development/ruby-modules/gem/default.nix
+++ b/pkgs/development/ruby-modules/gem/default.nix
@@ -136,7 +136,7 @@ stdenv.mkDerivation ((builtins.removeAttrs attrs ["source"]) // {
 
   # As of ruby 3.0, ruby headers require -fdeclspec when building with clang
   # Introduced in https://github.com/ruby/ruby/commit/0958e19ffb047781fe1506760c7cbd8d7fe74e57
-  env.NIX_CFLAGS_COMPILE = toString (lib.optionals (stdenv.cc.isClang && lib.versionAtLeast ruby.version.major "3") [
+  env.NIX_CFLAGS_COMPILE = toString (lib.optionals (ruby.rubyEngine == "ruby" && stdenv.cc.isClang && lib.versionAtLeast ruby.version.major "3") [
     "-fdeclspec"
   ]);