Nix on macOS | 1133 Members | |
| “There are still many issues with the Darwin platform but most of it is quite usable.” — http://yves.gnu-darwin.org | 180 Servers |
| Sender | Message | Time |
|---|---|---|
| 28 Oct 2025 | ||
| Why is the aerospace service not reading the default config file but instead is creating a new one inside the nix store? | 17:01:38 | |
| @emilazy:matrix.org: yes, coreutils cp / tar were taking a long time to copy into store; but I later found had some general issues with the builder (it was hanging / crashing even without builds) so I decided to upgrade to 26 and hope it magically fixes it. So far no issues after the upgrade, but who knows... | 17:50:46 | |
| * @emilazy:matrix.org: yes, coreutils cp / tar were taking a long time to copy into store; but I later found I had some general issues with the builder (it was hanging / crashing even without builds) so I decided to upgrade to 26 and hope it magically fixes it. So far no issues after the upgrade, but who knows... | 17:51:14 | |
| 29 Oct 2025 | ||
| nixpkgs documentation suggests libiconv is included in the Linux stdenv and only needs to be added explicitly for darwin builds, but cross compiling for Linux on a Darwin build machine has iconv missing. Is that expected behavior? | 17:33:12 | |
|
| 17:34:04 | |
| Hm, it's also missing if I explicitly add iconv to buildInputs, so I guess it's something else | 17:35:13 | |
| * Hm, it's also missing if I explicitly add libiconv to buildInputs, so I guess it's something else | 17:35:23 | |
| * nixpkgs documentation suggests libiconv is included in the Linux stdenv and only needs to be added explicitly for darwin builds, but cross compiling to Linux on a Darwin build machine has iconv missing. Is that expected behavior? | 17:35:33 | |
| Darwin stdenv also includes libiconv (via the SDK). The documentation may need updating. | 17:44:50 | |
| Is it one of those cross-stdenv is fubar like with GHC things? | 17:45:29 | |
likely it wants to link against iconv on the build platform | 18:42:06 | |
perhaps we fail to propagate the SDK deps for depsBuildBuild? | 18:42:22 | |
| it seems like we only ever do
| 18:43:10 | |
| and | 18:43:11 | |
| 18:43:12 | |
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 | ||
| Wil give that a try later today, thanks for the pointer! | 07:57:45 | |
| * Will give that a try later today, thanks for the pointer! | 08:26:07 | |
| 31 Oct 2025 | ||
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 | |
| * 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 | |
| * 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:22 | |
| I will try "-DCMAKE_OSX_DEPLOYMENT_TARGET=${stdenv.hostPlatform.darwinSdkVersion}" https://github.com/NixOS/nixpkgs/blob/d9376b2b549e33e71553901d7678461193f4d163/pkgs/by-name/wa/wamr/package.nix#L25 | 01:07:32 | |
| huh | 01:07:55 | |
| I wonder why CMake (apparently) doesn't pick up the min version properly from the stdenv | 01:10:27 | |
| it sounds like the project might be setting a deployment target in its own CMake files | 01:12:45 | |
| yes. I found it in cmake files | 01:14:19 | |
| might want to try just patching out that line | 01:14:33 | |
Download CleanShot 2025-10-31 at 12.31.53@2x.png | 01:32:02 | |
| I noticed that gtk packages like trayscale cannot find icons | 01:32:03 | |
Download CleanShot 2025-10-31 at 12.32.19@2x.png | 01:32:32 | |