!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
29 Oct 2025
@emilazy:matrix.orgemily

it seems like we only ever do

        extraBuildInputs = [ prevStage.apple-sdk ];
18:43:10
@emilazy:matrix.orgemilyand18:43:11
@emilazy:matrix.orgemily
            # Old ones run on wrong platform
            extraBuildInputs = lib.optionals hostPlatform.isDarwin [
              buildPackages.targetPackages.apple-sdk
            ];
18:43:12
@emilazy:matrix.orgemily I think we need to add apple-sdk to extraNativeBuildInputs in the native Darwin stdenv – then the cross one will pick it up. 18:43:29
30 Oct 2025
@niklaskorz:matrix.orgniklaskorzWil give that a try later today, thanks for the pointer!07:57:45
@niklaskorz:matrix.orgniklaskorz* Will give that a try later today, thanks for the pointer!08:26:07
31 Oct 2025
@mio:chat.mio19.ukmio I am trying to build a qt6 package on darwin https://github.com/mio-19/nurpkgs/blob/7765bec6509aff3381493b1ddf73e4d74ded02cd/default.nix#L140 I got many "introduced in macOS 10.15" error In file included from /nix/store/d8kjnv6jj7hh4qrmr5bghs6jqm259gb2-qtbase-6.10.0/lib/QtCore.framework/Headers/QFile:1: /nix/store/d8kjnv6jj7hh4qrmr5bghs6jqm259gb2-qtbase-6.10.0/lib/QtCore.framework/Headers/qfile.h:66:22: error: 'native' is unavailable: introduced in macOS 10.15 66 | return View(path.native()).toString(); | ^ /nix/store/245wgmjlkq2swfkb138xh1jvb41ag8mh-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1/__filesystem/path.h:670:44: note: 'native' has been explicitly marked unavailable here 670 | _LIBCPP_HIDE_FROM_ABI const string_type& native() const noexcept { return __pn_; } | ^ In file included from <built-in>:1: In file included from /nix/var/nix/builds/nix-48482-3499954108/source/build/src/framework/global/CMakeFiles/muse_global.dir/cmake_pch.hxx:5: In file included from /nix/var/nix/builds/nix-48482-3499954108/source/buildscripts/pch/pch.h:79: In file included from /nix/store/d8kjnv6jj7hh4qrmr5bghs6jqm259gb2-qtbase-6.10.0/lib/QtCore.framework/Headers/QFile:1: /nix/store/d8kjnv6jj7hh4qrmr5bghs6jqm259gb2-qtbase-6.10.0/lib/QtCore.framework/Headers/qfile.h:69:25: error: 'path' is unavailable: introduced in macOS 10.15 69 | inline std::filesystem::path toFilesystemPath(const QString &path) | ^ /nix/store/245wgmjlkq2swfkb138xh1jvb41ag8mh-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1/__filesystem/path.h:382:33: note: 'path' has been explicitly marked unavailable here 382 | class _LIBCPP_EXPORTED_FROM_ABI path { | ^ In file included from <built-in>:1: 01:06:01
@mio:chat.mio19.ukmio *

I am trying to build a qt6 package on darwin https://github.com/mio-19/nurpkgs/blob/7765bec6509aff3381493b1ddf73e4d74ded02cd/default.nix#L140 I got many "introduced in macOS 10.15" error

01:06:14
@mio:chat.mio19.ukmio *

I am trying to build a qt6 package on darwin https://github.com/mio-19/nurpkgs/blob/7765bec6509aff3381493b1ddf73e4d74ded02cd/default.nix#L140 I got many "introduced in macOS 10.15" error


In file included from /nix/store/d8kjnv6jj7hh4qrmr5bghs6jqm259gb2-qtbase-6.10.0/lib/QtCore.framework/Headers/QFile:1:
/nix/store/d8kjnv6jj7hh4qrmr5bghs6jqm259gb2-qtbase-6.10.0/lib/QtCore.framework/Headers/qfile.h:66:22: error: 'native' is unavailable: introduced in macOS 10.15
   66 |     return View(path.native()).toString();
      |                      ^
/nix/store/245wgmjlkq2swfkb138xh1jvb41ag8mh-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1/__filesystem/path.h:670:44: note: 'native' has been explicitly marked unavailable here
  670 |   _LIBCPP_HIDE_FROM_ABI const string_type& native() const noexcept { return __pn_; }
      |                                            ^
In file included from <built-in>:1:
In file included from /nix/var/nix/builds/nix-48482-3499954108/source/build/src/framework/global/CMakeFiles/muse_global.dir/cmake_pch.hxx:5:
In file included from /nix/var/nix/builds/nix-48482-3499954108/source/buildscripts/pch/pch.h:79:
In file included from /nix/store/d8kjnv6jj7hh4qrmr5bghs6jqm259gb2-qtbase-6.10.0/lib/QtCore.framework/Headers/QFile:1:
/nix/store/d8kjnv6jj7hh4qrmr5bghs6jqm259gb2-qtbase-6.10.0/lib/QtCore.framework/Headers/qfile.h:69:25: error: 'path' is unavailable: introduced in macOS 10.15
   69 | inline std::filesystem::path toFilesystemPath(const QString &path)
      |                         ^
/nix/store/245wgmjlkq2swfkb138xh1jvb41ag8mh-libcxx-19.1.2+apple-sdk-15.5/include/c++/v1/__filesystem/path.h:382:33: note: 'path' has been explicitly marked unavailable here
  382 | class _LIBCPP_EXPORTED_FROM_ABI path {
      |                                 ^
In file included from <built-in>:1:
01:06:22
@mio:chat.mio19.ukmioI will try "-DCMAKE_OSX_DEPLOYMENT_TARGET=${stdenv.hostPlatform.darwinSdkVersion}" https://github.com/NixOS/nixpkgs/blob/d9376b2b549e33e71553901d7678461193f4d163/pkgs/by-name/wa/wamr/package.nix#L2501:07:32
@samasaur:matrix.orgsamasaurhuh01:07:55
@samasaur:matrix.orgsamasaurI wonder why CMake (apparently) doesn't pick up the min version properly from the stdenv01:10:27
@emilazy:matrix.orgemilyit sounds like the project might be setting a deployment target in its own CMake files01:12:45
@mio:chat.mio19.ukmioyes. I found it in cmake files01:14:19
@emilazy:matrix.orgemilymight want to try just patching out that line01:14:33
@mio:chat.mio19.ukmioCleanShot 2025-10-31 at 12.31.53@2x.png
Download CleanShot 2025-10-31 at 12.31.53@2x.png
01:32:02
@mio:chat.mio19.ukmioI noticed that gtk packages like trayscale cannot find icons 01:32:03
@mio:chat.mio19.ukmioCleanShot 2025-10-31 at 12.32.19@2x.png
Download CleanShot 2025-10-31 at 12.32.19@2x.png
01:32:32
@mio:chat.mio19.ukmiognome-test-editor 01:32:33
@saige:szp.lolsaige leah changed their profile picture.07:11:33
@bartholomeww:matrix.orgtwistedttea changed their display name from bartholomew to twistedttea.10:08:26
@niklaskorz:matrix.orgniklaskorzso that wasn't it13:05:42
@niklaskorz:matrix.orgniklaskorzbut I have a theory13:05:46
@niklaskorz:matrix.orgniklaskorzapparently cross compiling Rust crates that try to compile vendored C code are using the wrong compiler13:06:17
@niklaskorz:matrix.orgniklaskorzno that's not it, minimal reproducer using the cc crate correctly uses x86_64-unknown-linux-gnu-gcc13:25:03
@niklaskorz:matrix.orgniklaskorzbut it's sufficient to add the liblzma-sys crate to a minimal application to reproduce13:29:44
@niklaskorz:matrix.orgniklaskorz* but it's sufficient to add the liblzma-sys crate to a minimal application to reproduce the linker failure13:30:15
@reckenrode:matrix.orgRandy Eckenrode Is that crate doing something wrong in its build.rs that breaks with cross-compilation? 13:30:24
@reckenrode:matrix.orgRandy Eckenrode * Is that crate doing something in its build.rs that breaks with cross-compilation? 13:30:33
@niklaskorz:matrix.orgniklaskorzI'm trying to find out, I suspect so13:30:46

Show newer messages


Back to Room ListRoom Version: 6