!lheuhImcToQZYTQTuI:nixos.org

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.org180 Servers

Load older messages


SenderMessageTime
28 Oct 2025
@cujanovic.filip:matrix.orgcujanovic.filipWhy is the aerospace service not reading the default config file but instead is creating a new one inside the nix store? 17:01:38
@ihar.hrachyshka:matrix.orgIhar Hrachyshka @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
@ihar.hrachyshka:matrix.orgIhar Hrachyshka* @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
@niklaskorz:matrix.orgniklaskorznixpkgs 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
@niklaskorz:matrix.orgniklaskorz

nix-build -A pkgsCross.gnu64.protonup-rs on an aarch64-darwin host gives

       >   = note: ld: library not found for -liconv
       >           clang: error: linker command failed with exit code 1 (use -v to see invocation)
17:34:04
@niklaskorz:matrix.orgniklaskorzHm, it's also missing if I explicitly add iconv to buildInputs, so I guess it's something else17:35:13
@niklaskorz:matrix.orgniklaskorz* Hm, it's also missing if I explicitly add libiconv to buildInputs, so I guess it's something else17:35:23
@niklaskorz:matrix.orgniklaskorz* 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
@reckenrode:matrix.orgRandy EckenrodeDarwin stdenv also includes libiconv (via the SDK). The documentation may need updating.17:44:50
@reckenrode:matrix.orgRandy EckenrodeIs it one of those cross-stdenv is fubar like with GHC things?17:45:29
@emilazy:matrix.orgemily likely it wants to link against iconv on the build platform 18:42:06
@emilazy:matrix.orgemily perhaps we fail to propagate the SDK deps for depsBuildBuild? 18:42:22
@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

Show newer messages


Back to Room ListRoom Version: 6