!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1135 Members
“There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org180 Servers

Load older messages


SenderMessageTime
25 Oct 2025
@samasaur:matrix.orgsamasaurmaybe the first time Network.framework is actually used by qt?05:07:25
@samasaur:matrix.orgsamasaurregardless I think this patch fixes it. if my build ever completes we will know for sure05:08:56
@samasaur:matrix.orgsamasauryay okay it works05:16:13
@samasaur:matrix.orgsamasaurhttps://github.com/NixOS/nixpkgs/pull/45545805:43:51
@k900:0upti.meK900I kinda like the not-patch route07:07:08
@k900:0upti.meK900 But maybe @emily or @Randy Eckenrode have opinions 07:07:21
@k900:0upti.meK900I don't even know if it makes any sense to set that globally07:08:34
@k900:0upti.meK900My intuition says "this is probably some sort of attempted purity hack"07:08:48
@samasaur:matrix.orgsamasaur i was in a patch-based mindset because i found the upstream commit first and wanted to fetchpatch it, but since it doesn't work as-is I don't really care 07:09:17
@samasaur:matrix.orgsamasaurmy concern with setting it globally would be that some other part of qtbase needs the "prefer library over framework" behavior but evidently that seems not to be the case07:10:02
@samasaur:matrix.orgsamasaur

FWIW the cmakeFlags approach is quite literally just:

diff --git a/pkgs/development/libraries/qt-6/modules/qtbase/default.nix b/pkgs/development/libraries/qt-6/modules/qtbase/default.nix
index ab35d1906f73..0ab2fd0b4a38 100644
--- a/pkgs/development/libraries/qt-6/modules/qtbase/default.nix
+++ b/pkgs/development/libraries/qt-6/modules/qtbase/default.nix
@@ -292,6 +292,8 @@ stdenv.mkDerivation rec {
     # When this variable is not set, cmake tries to execute xcodebuild
     # to query the version.
     "-DQT_INTERNAL_XCODE_VERSION=0.1"
+
+    "-DCMAKE_FIND_FRAMEWORK=FIRST"
   ]
   ++ lib.optionals isCrossBuild [
     "-DQT_HOST_PATH=${pkgsBuildBuild.qt6.qtbase}"
07:16:06
@samasaur:matrix.orgsamasaur it is part of a PR that was mostly purity hacks but i think the logic for setting it to LAST globally is actually just entirely wrong now that frameworks from the SDK are included by default. like it kinda makes sense in a darwin.apple_sdk.frameworks world where frameworks are usually not available (though it should fall back to libraries anyway in that case?), but with the SDK included as an input to every package it just doesn't make sense anymore 07:30:51
@samasaur:matrix.orgsamasaurwhich is even supported by that comment saying "on macOS we want to prefer Unix-style headers to Frameworks because we usually do not package the framework"07:31:18
@k900:0upti.meK900Yeeeeeeeeeeah what the fuck07:31:22
@samasaur:matrix.orgsamasaurbecause we do now package the frameworks07:31:23
@samasaur:matrix.orgsamasaurimage.png
Download image.png
07:31:41
@samasaur:matrix.orgsamasaurthis will be fun07:31:51
@samasaur:matrix.orgsamasaur(dropping that flag from the setup hook)07:32:31
@k900:0upti.meK900

    # correctly detect our clang compiler
    prependToVar cmakeFlags "-DCMAKE_POLICY_DEFAULT_CMP0025=NEW"
07:32:47
@k900:0upti.meK900This is still there too07:32:49
@k900:0upti.meK900Pretty sure that policy doesn't even EXIST anymore07:33:36
@k900:0upti.meK900https://gitlab.kitware.com/cmake/cmake/-/blob/master/Help/policy/CMP0025.rst07:34:27
@k900:0upti.meK900Yep removed in 4.007:34:30
@samasaur:matrix.orgsamasauroh cool07:34:40
@samasaur:matrix.orgsamasaurokay let me cancel this build and start a new one with that line gone too07:34:51
@samasaur:matrix.orgsamasaurand then i'm gonna go to sleep and we will see what i come back to in the morning07:35:05
@reckenrode:matrix.orgRandy EckenrodeCould they be referring to other packages’ frameworks?10:36:42
@reckenrode:matrix.orgRandy EckenrodeThough if we don’t package them, why prefer the non-framework when that’s all you’ll find anyway ….10:36:50
@reckenrode:matrix.orgRandy Eckenrodee.g., https://github.com/NixOS/nixpkgs/pull/44735110:41:34
@emilazy:matrix.orgemilydestroy it12:43:00

Show newer messages


Back to Room ListRoom Version: 6