!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
28 Oct 2025
@samasaur:matrix.orgsamasaurbut iirc that flag will make it install upstream nix for the two months04:19:15
@samasaur:matrix.orgsamasaurand then honestly i think our recommendation should probably be to install lix and use that to bootstrap?04:19:50
@emilazy:matrix.orgemilyprobably we should just recommend the experimental installer… if it actually ships…04:20:22
@samasaur:matrix.orgsamasaurbecause i'm figuring that most people just use the default of "letting nix-darwin manage your nix install with the default options" (as i do) and if they aren't doing that they should know what they're doing anyway04:20:43
@emilazy:matrix.orgemilyafaik the main blocker has just been some infra stuff for months04:20:45
@emilazy:matrix.orgemilybut it sounded like that was getting resolved04:20:49
@samasaur:matrix.orgsamasauryes sorry. that should be "experimental installer if it ships; otherwise lix installer"04:21:04
@samasaur:matrix.orgsamasaurprioritizing the "install something that immediately gets overritten by nix-darwin managing nix" workflow04:21:27
@samasaur:matrix.orgsamasaurtrying to convince myself to do some nix-darwin work next which will include looking at this situation04:23:56
@samasaur:matrix.orgsamasaurbut i keep getting distracted by other things04:24:02
@anicolao:matrix.orgAlex NicolaouThanks to both of you for all yoru help. I am going to go the lix installer way for now. 05:08:10
@anicolao:matrix.orgAlex NicolaouIf it was me, I would remove references to the Determinate installer as the flow is confusing, but OTOH anyone going down this path has a steep hill to climb anyway, so perhaps it doesn't matter much.05:08:47
@emilazy:matrix.orgemily Ihar Hrachyshka: were you saying something about builds being really slow lately? 16:52:15
@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

Show newer messages


Back to Room ListRoom Version: 6