Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

ruby: fix cross-build (#51842)

Enable autoreconfHook by default: The build tried to execute autoconf, which was
in the wrong build input. Regenerating autotools configure files is always a good
idea since it delivers fixes.
Also move groff to the native since it is only used at build-time

authored by

Jörg Thalheim and committed by zimbatm.tngl.sh 10ba7875 fee79f54

+4 -8
+4 -8
pkgs/development/interpreters/ruby/default.nix
··· 73 73 # Have `configure' avoid `/usr/bin/nroff' in non-chroot builds. 74 74 NROFF = if docSupport then "${groff}/bin/nroff" else null; 75 75 76 - nativeBuildInputs = 77 - ops useRailsExpress [ autoreconfHook bison ] 78 - ++ ops (stdenv.buildPlatform != stdenv.hostPlatform) [ 79 - buildPackages.ruby 80 - ]; 76 + nativeBuildInputs = [ autoreconfHook bison ] 77 + ++ (op docSupport groff) 78 + ++ op (stdenv.buildPlatform != stdenv.hostPlatform) buildPackages.ruby; 81 79 buildInputs = 82 80 (op fiddleSupport libffi) 83 81 ++ (ops cursesSupport [ ncurses readline ]) 84 - ++ (op docSupport groff) 85 82 ++ (op zlibSupport zlib) 86 83 ++ (op opensslSupport openssl) 87 84 ++ (op gdbmSupport gdbm) 88 85 ++ (op yamlSupport libyaml) 89 - ++ (op isRuby25 autoconf) 90 86 # Looks like ruby fails to build on darwin without readline even if curses 91 87 # support is not enabled, so add readline to the build inputs if curses 92 88 # support is disabled (if it's enabled, we already have it) and we're ··· 149 145 postInstall = '' 150 146 # Update rubygems 151 147 pushd rubygems 152 - ${buildRuby} setup.rb 148 + ${buildRuby} setup.rb --destdir $GEM_HOME 153 149 popd 154 150 155 151 # Remove unnecessary groff reference from runtime closure, since it's big