forked from mirrors/nixpkgs
6638690261
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. |
||
---|---|---|
.. | ||
rubygems | ||
config.nix | ||
default.nix | ||
dev.nix | ||
patchsets.nix | ||
rbconfig.rb | ||
ruby-version.nix | ||
rvm-patchsets.nix |