libsForQt5: use makeScopeWithSplicing#266537
Conversation
Fixes getting spliced packages with `libsForQt5.callPackage`
Remove attributes which are coming from the sets which are added `//`, they weren't working correctly. Same thing is done in `llvmPackages`
ghost
left a comment
There was a problem hiding this comment.
Yep, everything builds for me with this.
Looking forward to all the helpful lib.warns we will be able to add in two weeks.
|
Ugh, unfortunately my workaround for the fact that |
|
python3Packages is spliced. |
|
Here, paste this. The first derivation builds (proof from ofborg); the second one won't. It gets all confused and tries to use # [DONTMERGE] PR to demonstrate qutebrowser cross compile #265401
git fetch https://github.com/NixOS/nixpkgs/ pull/265401/head
git reset --hard FETCH_HEAD
# built successfully by ofborg: https://github.com/NixOS/nixpkgs/pull/265401/checks?check_run_id=18368468301
nix-instantiate . -A pkgsCross.aarch64-multiplatform.python3Packages.pyqt5
# /nix/store/8sf71dnxw3hd04ga6k2vdd3wypgkz24l-python3.11-PyQt5-5.15.9-aarch64-unknown-linux-gnu.drv
# cherry-pick this PR
git cherry-pick 84b8b952085f71c1d3184e99b85806417fbc850f^
git cherry-pick 84b8b952085f71c1d3184e99b85806417fbc850f
nix-instantiate . -A pkgsCross.aarch64-multiplatform.python3Packages.pyqt5
# /nix/store/i4p7k5ika43j615cliq01ggla7dcn2pq-python3.11-PyQt5-5.15.9-aarch64-unknown-linux-gnu.drv
nix-diff \
/nix/store/i4p7k5ika43j615cliq01ggla7dcn2pq-python3.11-PyQt5-5.15.9-aarch64-unknown-linux-gnu.drv \
/nix/store/8sf71dnxw3hd04ga6k2vdd3wypgkz24l-python3.11-PyQt5-5.15.9-aarch64-unknown-linux-gnu.drvThe |
|
|
||
| let | ||
| pkgs = __splicedPackages; | ||
| qt5 = __splicedPackages.qt5; |
There was a problem hiding this comment.
@amjoseph-nixpkgs
this is the issue
nix-repl> pkgsCross.aarch64-multiplatform.pkgsBuildTarget.targetPackages.libsForQt5.qtbase ? __spliced
true
Fixing it..

Description of changes
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/)