!ayCRiZriCVtuCUpeLp:nixos.org

Nix Cross Compiling

568 Members
123 Servers

Load older messages


SenderMessageTime
4 Jul 2025
@artturin:matrix.orgArtturin* What commits?18:16:43
@artturin:matrix.orgArtturin * overriding doesn't preserve splicing so the __splicedPackages there does nothing (in the "previous solution" it did something) 18:18:48
@artturin:matrix.orgArtturin * overriding doesn't preserve splicing so the __splicedPackages there does nothing (in the "previous solution" it did something because you didn't .override) 18:22:48
@artturin:matrix.orgArtturin * What commits? You can find them in git reflog 18:32:40
@sananatheskenana:matrix.orglzcuntthe commits that removed zlib from python3Minimal18:38:23
@sananatheskenana:matrix.orglzcuntis there a way to splice the overridden package?18:38:40
@artturin:matrix.orgArtturinhttps://github.com/NixOS/nixpkgs/pull/26779218:40:58
@artturin:matrix.orgArtturinMaybe the self and pythonAttr are causing your issue https://github.com/NixOS/nixpkgs/blob/ce72a12fd00a945c0b7717b3ea2ce51d5c42a20c/pkgs/development/interpreters/python/default.nix#L105-L10718:42:38
@artturin:matrix.orgArtturinYou should really do an overlay to overwrite 18:42:50
@artturin:matrix.orgArtturin* You should really do an overlay to override18:42:56
@artturin:matrix.orgArtturin python3MinimalWithZlib = python3.override { self = __splicedPackages.python3MinimalWithZlib; pythonAttr = "python3MinimalWithZlib"; ... } 18:43:41
@artturin:matrix.orgArtturin meson.override { python3 = python3MinimalWithZlib; } 18:43:59
@artturin:matrix.orgArtturin * ...meson.override { python3 = python3MinimalWithZlib; } 18:44:02
@sananatheskenana:matrix.orglzcuntRedacted or Malformed Event18:44:16
@sananatheskenana:matrix.orglzcuntwrong reply18:44:27
@sananatheskenana:matrix.orglzcuntwell I intend for this to be merged to nixpkgs18:44:40
@artturin:matrix.orgArtturin

There's some python3.override's in nixpkgs but they're doing packageOverrides, not overriding python.

python = python3.override {
   self = python;
   packageOverrides = self: super: { sqlalchemy = super.sqlalchemy_1_4; };
 };
18:46:59
@emilazy:matrix.orgemilyyou should really just try to get full Python building18:47:11
@emilazy:matrix.orgemilyDarwin bootstrap does it18:47:16
@artturin:matrix.orgArtturin *

There's some python3.override's in nixpkgs but they're doing packageOverrides, not overriding python. (I don't think they cause a python rebuild though)

python = python3.override {
   self = python;
   packageOverrides = self: super: { sqlalchemy = super.sqlalchemy_1_4; };
 };
18:47:44
@sananatheskenana:matrix.orglzcunt openssl, libffi, and probably others have infinite recursions because they all do cc.isGNU which depends on the libc which depends on meson which is rough 18:48:09
@sananatheskenana:matrix.orglzcuntbut i'll look into darwin bootstrap18:48:16
@sananatheskenana:matrix.orglzcunt * openssl, libffi, and probably others have infinite recursions because they all do cc.isGnu or whatever which depends on the libc which depends on meson which is rough 18:48:29
@sananatheskenana:matrix.orglzcunthm i just tried buildPackages.buildPackages.meson out of curiosity and it's building now, i remember trying this before but i don't remember what went wrong19:02:37
@sananatheskenana:matrix.orglzcuntit's been like 6 months since i tried that19:02:51
@sananatheskenana:matrix.orglzcuntmaybe I can just use the build machine's non-cross meson and i don't need to override python. i believe upstream does that too19:03:50
@artturin:matrix.orgArtturinMeson is multi arch by default isn't it, and it uses a cross file https://github.com/NixOS/nixpkgs/blob/master/pkgs/build-support/lib/meson.nix19:05:01
@artturin:matrix.orgArtturinso pkgsBuildBuild of meson should be fine19:05:09
@sananatheskenana:matrix.orglzcuntyea and this is technically a freestanding package19:05:19
@sananatheskenana:matrix.orglzcuntwell there's two ways to build it19:05:29

Show newer messages


Back to Room ListRoom Version: 6