Skip to content

Instantly share code, notes, and snippets.

@samueldr
Last active March 5, 2021 23:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueldr/d5d9dcf2f8659ff3fa5b81f905b57f70 to your computer and use it in GitHub Desktop.
Save samueldr/d5d9dcf2f8659ff3fa5b81f905b57f70 to your computer and use it in GitHub Desktop.
[nix-shell:~/.../mobile-nixos/nixpkgs]$ nix-diff --color never $(env -i nix-instantiate -A pkgs.rake -A pkgs.pkgsCross.
aarch64-multiplatform.pkgsStatic.buildPackages.rake)
warning: you did not specify '--add-root'; the result might be removed by the garbage collector
- /nix/store/kh8ncagd2hqgsks5za9v9pnidrcans6r-rake-12.3.2.drv:{out}
+ /nix/store/7mmirvi4g0gbb7jiplnnrg8pj3i7554r-rake-12.3.2.drv:{out}
• The input named `rake-12.3.2` differs
- /nix/store/l6pkc8kbqbdbgkmdaz6gg5l6igvb2yz7-rake-12.3.2.drv:{out}
+ /nix/store/g0wa7w5gmygsiy7g4l1y2gql30ps78lx-rake-12.3.2.drv:{out}
• The input named `bundler-2.1.4` differs
- /nix/store/mjgwwak20biyvaf9lw1fgw53v99gzqd9-bundler-2.1.4.drv:{out}
+ /nix/store/r9r2wykmrimqg7mmhpvx1h7k40zn8as0-bundler-2.1.4.drv:{out}
• The input named `ruby-2.6.6` differs
- /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
• Skipping environment comparison
• The input named `ruby-2.6.6` differs
• These two derivations have already been compared
• The input named `ruby2.6.6-rake-12.3.2` differs
- /nix/store/ykk69s21wmsbfjplwhskq8a1jgq90s1g-ruby2.6.6-rake-12.3.2.drv:{out}
+ /nix/store/z59naigvf2dpscgd6zzcwl0yw7hbrq45-ruby2.6.6-rake-12.3.2.drv:{out}
• The input named `ruby-2.6.6` differs
• These two derivations have already been compared
• Skipping environment comparison
• Skipping environment comparison
• Skipping environment comparison
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment