nixpkgs/pkgs/development/interpreters
Samuel Dionne-Riel 6638690261 ruby: Use hostPlatform
Using `stdenv.targetPlatform` gives the wrong platform in buildPackages.

E.g.:

```
 $ nix-diff --color never $(env -i nix-instantiate -A pkgs.ruby -A pkgs.pkgsCross.aarch64-multiplatform.buildPackages.ruby)
- /nix/store/w8wk99p4gadns35n2l0fr7wx56jlwnnx-ruby-2.6.6.drv:{out}
+ /nix/store/5ywj7nicjai6ji4g33yh6nvz1b5fq7xw-ruby-2.6.6.drv:{out}
• The input named `ruby-2.6.6` differs
  - /nix/store/4a6nag89dcxwdf32820z6dfwwpfgab8s-ruby-2.6.6.drv:{out}
  + /nix/store/40pakkdfv578zffx3y11qd5ckcp2xpzm-ruby-2.6.6.drv:{out}
  • The environments do not match:
      postInstall=''
          # Remove unnecessary groff reference from runtime closure, since it's big
          sed -i '/NROFF/d' $out/lib/ruby/*/*/rbconfig.rb

          # Bundler tries to create this directory
          mkdir -p $out/nix-support
          cat > $out/nix-support/setup-hook <<EOF
          addGemPath() {
            addToSearchPath GEM_PATH \$1/lib/ruby/gems/2.6.0
          }
          addRubyLibPath() {
            addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby
            addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby/2.6.0
            addToSearchPath RUBYLIB \$1/lib/ruby/site_ruby/2.6.0/←x86_←→aarch→64-linux
          }

          addEnvHooks "$hostOffset" addGemPath
          addEnvHooks "$hostOffset" addRubyLibPath
          EOF

          rbConfig=$(find $out/lib/ruby -name rbconfig.rb)
      ''
• Skipping environment comparison
```

`pkgs.pkgsCros.*.buildPackage.ruby` should be equivalent to `pkgs.ruby`.
It wasn't.
2021-03-06 22:30:55 -05:00
..
acl2 pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
alda pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
angelscript pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
bats bats: 1.2.0 -> 1.2.1 2021-01-16 11:24:34 -06:00
ceptre pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
chibi treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
cling pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
clips clips: 6.30 -> 6.31; supersedes and closes #109914 (#114132) 2021-02-26 18:16:54 +01:00
clisp pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
clojure babashka: sync native-image arguments with upstream 2021-02-26 11:47:23 -03:00
clojurescript/lumo pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
cyclone pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
dart dart: add some assertions 2021-01-27 14:48:10 -03:00
dhall Incorporate revision in name for Dhall GitHub packages 2021-01-15 19:14:58 +01:00
duktape pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
eff pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
elixir treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
erlang Merge pull request #112989 from happysalada/allow_erlang_openssl_override 2021-02-17 08:21:29 +00:00
evcxr pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
falcon Merge pull request #110589 from siraben/cmake-buildinputs 2021-01-23 20:37:45 +01:00
gauche gauche: mark broken on darwin 2021-02-02 14:46:05 +01:00
gnu-apl pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
groovy treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
gtk-server pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
guile guile-1.8: fix CVE-2016-8605 2021-02-23 20:38:06 +09:00
hugs pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
hy treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
icon-lang pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
io io: switch to pname 2021-02-24 14:00:12 +01:00
j j: fix build 2021-02-16 14:26:06 +00:00
janet janet: 1.15.2 -> 1.15.3 2021-03-03 00:00:33 +00:00
jelly
jimtcl pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
joker treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
jruby Merge pull request #114442 from r-ryantm/auto-update/jruby 2021-02-27 00:44:40 -05:00
jython treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
kona pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
lfe maintainers/teams: add beam team 2021-02-07 13:01:11 -06:00
lolcode pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
love pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
lua-5 treewide: fix double quoted strings in meta.description 2021-01-24 19:56:59 +07:00
luajit pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
lush pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
maude pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
metamath metamath: 0.194 -> 0.196 2021-01-30 18:11:19 +00:00
micropython treewide: pkgs.pkgconfig -> pkgs.pkg-config, move pkgconfig to alias.nix 2021-01-19 01:16:25 -08:00
mujs pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
nix-exec pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
octave octave.pkgs: stdenv.lib -> lib 2021-02-25 22:16:54 -08:00
perl Merge pull request #110654 from stigtsp/package/perl-5.32.1-staging 2021-02-17 03:01:01 +01:00
php nixos/tests/php: Select the right versions of the tests depending on version 2021-03-02 09:22:33 +01:00
picoc pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
picolisp treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
pixie pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
proglodyte-wasm pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
pure treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
pyrex treewide: remove stdenv where not needed 2021-01-25 18:31:47 +01:00
python python: fix full builds by referring to the correct interpreter 2021-02-27 11:12:05 +01:00
qnial pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
quickjs quickjs: 2019-12-21 -> 2020-11-08 2021-02-15 17:12:54 +01:00
racket racket-minimal: fix build on darwin 2021-02-14 17:40:00 +01:00
rakudo treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
rascal treewide: makeWrapper buildInputs to nativeBuildInputs 2021-02-19 20:09:16 +07:00
red pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
regina pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
renpy pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
ruby ruby: Use hostPlatform 2021-03-06 22:30:55 -05:00
scheme48 scheme48: refactor and add siraben as maintainer 2021-02-24 15:22:15 +07:00
scsh pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
self pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
shen-sbcl pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
shen-sources pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
spidermonkey spidermonkey: use LLVM 11 2021-02-20 08:54:24 +01:00
supercollider qtbase: Check for wrapQtAppsHook in setupHook 2021-01-25 15:56:15 -06:00
tcl tcl-8_6: 8.6.9 -> 8.6.11 2021-02-20 09:03:04 +01:00
tclreadline pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
tinyscheme pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
unicon-lang pkgs/development/interpreters: stdenv.lib -> lib 2021-01-23 20:29:03 +07:00
wasmer wasmer: remove spurious feature quotation 2021-02-16 08:09:17 +01:00
wasmtime wasmtime: 0.20.0 -> 0.21.0 2020-11-11 00:59:48 +01:00