!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1163 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
22 Oct 2025
@emilazy:matrix.orgemily but the reason to switch to lib.extendMkDerivation is that it makes .overrideAttrs etc. actually work properly 01:19:54
@emilazy:matrix.orgemily and avoids the results having a somewhat dodgy .override (albeit one that is clobbered by callPackage in practice) 01:20:21
@reckenrode:matrix.orgRandy Eckenrode The magic filename stuff is largely the point of the Meson stuff. It’s to reduce the boilerplate of copying in the files and setting the version/etc. With Swift Build, we don’t need that stuff at all. You could just use swiftBuildHook (or whatever it gets called) and the internal SDK. 01:20:31
@reckenrode:matrix.orgRandy Eckenrode Inheriting meta seems worse. You would end up with every derivation copying and pasting meta = { description = "blah"; inherit (standardMeta) etc etc etc; }. 01:21:36
@emilazy:matrix.orgemily it could be done with (magicMesonHook ./.) or similar though 01:22:39
@reckenrode:matrix.orgRandy EckenrodeTrue.01:23:03
@reckenrode:matrix.orgRandy EckenrodeWould that make Darwin’s having the only two hooks that take arguments?01:23:20
@emilazy:matrix.orgemily I've been working on proper support for scopes etc. for by-name 01:23:25
@emilazy:matrix.orgemilyso the magic filename stuff probably can't last forever anyway :)01:23:35
@emilazy:matrix.orgemilythough ideally we just get Swift Build working and don't have to maintain our own build systems for it all any more01:23:55
@debtquity:matrix.orgdebtquityseems some applications that rely on gtk are breaking on unstable01:23:56
@reckenrode:matrix.orgRandy Eckenrode What do you mean by scopes for by-name? Like there would be a pkgs/python/by-name? 01:23:59
@emilazy:matrix.orgemilywhich would also cut down on the boilerplaet a lot01:24:08
@emilazy:matrix.orgemily* which would also cut down on the boilerplate a lot01:24:11
@reckenrode:matrix.orgRandy Eckenrode I wish the by-name infrastructure were exposed as a function. 01:24:27
@emilazy:matrix.orgemily that's already possible-ish (tclPackages moved to by-name and there's a draft for Python), what isn't possible is scopes that are inside pkgs/by-name itself 01:24:42
* @reckenrode:matrix.orgRandy Eckenrode goes to look at the implementation.01:26:52
@reckenrode:matrix.orgRandy Eckenrode It’s importing by-name-overlay.nix. 01:27:24
@emilazy:matrix.orgemilythat will probably end up abstracted away in the process yeah01:27:39
@emilazy:matrix.orgemily(although in practice it is just going to be the automatic path for scopes rather than something you have to think about)01:28:02
@reckenrode:matrix.orgRandy Eckenrode Which is different from lib.packagesFromDirectoryRecursive. 01:28:06
@reckenrode:matrix.orgRandy Eckenrode I want to move Darwin to the by-name-overlay for 25.11. 01:28:32
@reckenrode:matrix.orgRandy Eckenrode * I want to move Darwin to the by-name-overlay for 26.05. 01:29:10
@reckenrode:matrix.orgRandy Eckenrode Switch from lib.packagesFromDirectoryRecursive to the overlay and get rid of the randomly ordered list of callPackage. 01:29:15
@emilazy:matrix.orgemily if me and Wolfgang do our jobs then literally everything will be in by-name by 26.05 01:29:41
@reckenrode:matrix.orgRandy Eckenrode And kill the stupid gas stuff. I’ve been putting off reworking GNAT to use the normal assembler and add aarch64-darwin support. 01:29:44
@emilazy:matrix.orgemilyso I wouldn't spend too much time on it :)01:29:53
@reckenrode:matrix.orgRandy Eckenrode Darwin would be in pkgs/os-specific/darwin/by-name? 01:30:08
@emilazy:matrix.orgemily pkgs/by-name/darwin rather 01:30:21
@emilazy:matrix.orgemily * pkgs/by-name/da/darwin rather 01:30:24

Show newer messages


Back to Room ListRoom Version: 6