summaryrefslogtreecommitdiffstats
path: root/pkgs/development/interpreters/ruby/default.nix
diff options
context:
space:
mode:
authorIvan Trubach <mr.trubach@icloud.com>2023-10-03 03:29:45 +0300
committerIvan Trubach <mr.trubach@icloud.com>2023-10-03 03:30:13 +0300
commitf391429b917a2f9ffb4136808c73fe3e11e46acd (patch)
tree0a42af3d4d6e3c126371264c7134b4ba5b040e9f /pkgs/development/interpreters/ruby/default.nix
parent006a72a68d65c99b324d4b9154739ec85eee0609 (diff)
ruby: fix build with content-addressed derivations
Diffstat (limited to 'pkgs/development/interpreters/ruby/default.nix')
-rw-r--r--pkgs/development/interpreters/ruby/default.nix10
1 files changed, 5 insertions, 5 deletions
diff --git a/pkgs/development/interpreters/ruby/default.nix b/pkgs/development/interpreters/ruby/default.nix
index d650a03331eb..884369451f47 100644
--- a/pkgs/development/interpreters/ruby/default.nix
+++ b/pkgs/development/interpreters/ruby/default.nix
@@ -82,7 +82,7 @@ let
strictDeps = true;
- nativeBuildInputs = [ autoreconfHook bison ]
+ nativeBuildInputs = [ autoreconfHook bison removeReferencesTo ]
++ (op docSupport groff)
++ (ops (dtraceSupport && stdenv.isLinux) [ systemtap libsystemtap ])
++ ops yjitSupport [ rustPlatform.cargoSetupHook cargo rustc ]
@@ -225,10 +225,10 @@ let
${
lib.optionalString (!jitSupport) ''
# Get rid of the CC runtime dependency
- ${removeReferencesTo}/bin/remove-references-to \
+ remove-references-to \
-t ${stdenv.cc} \
$out/lib/libruby*
- ${removeReferencesTo}/bin/remove-references-to \
+ remove-references-to \
-t ${stdenv.cc} \
$rbConfig
sed -i '/CC_VERSION_MESSAGE/d' $rbConfig
@@ -270,7 +270,7 @@ let
cp ${./rbconfig.rb} $devdoc/lib/ruby/site_ruby/rbconfig.rb
'' + opString useBaseRuby ''
# Prevent the baseruby from being included in the closure.
- ${removeReferencesTo}/bin/remove-references-to \
+ remove-references-to \
-t ${baseRuby} \
$rbConfig $out/lib/libruby*
'';
@@ -290,7 +290,7 @@ let
'';
doInstallCheck = true;
- disallowedRequisites = op (!jitSupport) stdenv.cc.cc
+ disallowedRequisites = op (!jitSupport) stdenv.cc
++ op useBaseRuby baseRuby;
meta = with lib; {