!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
22 Oct 2024
@reckenrode:matrix.orgRandy EckenrodeUnless there’s something else broken like rcodesign, I’m probably going to spend the next few days updating the stdenv documentation for Darwin.01:00:03
@samasaur:matrix.orgsamasaurhttps://developer.apple.com/documentation/servicemanagement/updating-your-app-package-installer-to-use-the-new-service-management-api This app works without having to graphically run the .pkg installer, just running the app executable directly. However, it was built with real Xcode. I'm investigating now to see if it'll work with ad-hoc signatures instead of my real developer ID01:31:05
@ihar.hrachyshka:matrix.orgIhar Hrachyshkahttps://github.com/NixOS/nixpkgs/pull/35038401:43:03
@ihar.hrachyshka:matrix.orgIhar Hrachyshkawhat's the approach to pick the sdk version for a package? the minimal possible that is still supported by upstream? or should I pick the latest instead? My interpretation of https://github.com/NixOS/nixpkgs/pull/338695 is the former, but perhaps I misunderstood?02:28:18
@reckenrode:matrix.orgRandy EckenrodeThat’s a good question. I don’t cover it in the documentation update, but I should.02:30:16
@reckenrode:matrix.orgRandy EckenrodeAs a rule of thumb, use the latest indicated by upstream and set the minimum version with the hook.02:30:30
@ihar.hrachyshka:matrix.orgIhar Hrachyshkalatest MINIMAL indicated by upstream you mean?02:30:49
@reckenrode:matrix.orgRandy EckenrodeThis assumes upstream is well-behaved using availability checks.02:30:51
@reckenrode:matrix.orgRandy EckenrodeFor example, Qt 6 builds with the 15.0 SDK and propagates a minimum version of 12.0.02:31:14
@reckenrode:matrix.orgRandy EckenrodeBecause that is what upstream specifies.02:31:20
@ihar.hrachyshka:matrix.orgIhar Hrachyshkafirefox has a check for 14.4+, so I wonder if I should/can bump to 15 if it still compiles. My reading is probably no.02:31:24
@reckenrode:matrix.orgRandy EckenrodeI would probably not go beyond what upstream indicates.02:31:37
@reckenrode:matrix.orgRandy EckenrodeI should also add that to the documentation.02:31:46
@ihar.hrachyshka:matrix.orgIhar HrachyshkaI will wait for documentation :)02:32:00
@ihar.hrachyshka:matrix.orgIhar Hrachyshkachat is a bit vague and I don't want it to become a word picking contest :p02:32:15
@ihar.hrachyshka:matrix.orgIhar HrachyshkaI will review when it's up!02:32:24
@reckenrode:matrix.orgRandy EckenrodeThe reason is Apple uses the SDK version in the binary to vary behavior at runtime. Sometimes the change in behavior can be breaking, and the application has to be updated to take it into account.02:32:30
@samasaur:matrix.orgsamasaurSUCCESS02:35:57
@samasaur:matrix.orgsamasaurimage.png
Download image.png
02:36:15
@samasaur:matrix.orgsamasaurthis is not yet Nix-built but it isn't built with Xcode02:36:23
@samasaur:matrix.orgsamasaurIt does need Swift, though, FWIW02:38:51
@samasaur:matrix.orgsamasaurprobably could be done with Objective-C instead02:39:08
@reckenrode:matrix.orgRandy Eckenrodehttps://github.com/NixOS/nixpkgs/pull/35039503:09:50
@reckenrode:matrix.orgRandy Eckenrode That’s the documentation piece of the Darwin refactor. I tried to touch on the various ways the SDKs and darwinMinVersionHook can be used (as well as cross-compilation and darwinMinVersion/darwinSdkVersion). 03:10:34
@reckenrode:matrix.orgRandy EckenrodePlease review for content, clarity, and wording. 🙂03:10:48
@jmartindf:4d2.orgjmartindf joined the room.04:28:07
@samasaur:matrix.orgsamasaurhmm, it looks like this may only work for LaunchAgents, not LaunchDaemons — at least, LaunchDaemons must be manually approved in System Settings04:47:58
@reckenrode:matrix.orgRandy Eckenrode Having launch agents with nice names is still a big improvement. 04:55:35
@samasaur:matrix.orgsamasaur okay, question: I am pretty sure I need to sign these app bundles, if only with an ad-hoc signature. Should I use codesign from sigtool or rcodesign? I've only ever used normal codesign before 05:19:27
@samasaur:matrix.orgsamasaur (the answer is that codesign really does not seem to work that well and rcodesign worked flawlessly) 06:15:29

Show newer messages


Back to Room ListRoom Version: 6