!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

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

Load older messages


SenderMessageTime
5 Mar 2026
@emilazy:matrix.orgemilylast couple cycles sounds more like OS upgrade to me, though I forget when the last one of those was.15:39:42
@vcunat:matrix.orgvcunatI mean, if it's a nixpkgs change, you could pick a random package and measure the time a year ago and now.15:40:30
@vcunat:matrix.orgvcunatIf it's a well measurable difference, then even bisection is viable.15:40:50
@vcunat:matrix.orgvcunat (--first-parent bisection might be relatively low-effort) 15:41:38
@vcunat:matrix.orgvcunat(until you hit a staging* merge - and then it's harder to dig inside)15:42:18
@emilazy:matrix.orgemilyright. I probably shouldn't get sidetracked investigating right now, was just wondering if there was anything obvious I could correlate with when things started to get slower15:42:19
@vcunat:matrix.orgvcunat * (until you hit the staging* merge containing the regression - and then it's harder to dig inside) 15:42:34
@vcunat:matrix.orgvcunatNo, I don't think we have that.15:42:50
@glepage:matrix.orgGaétan Lepage

Learned about this. Good to hear! x86_64-darwin is quite a burden TBH.

Just to be sure, we are expected to "stop caring (as much)" about this platform after the 26.05 branch off, right?

18:11:41
@ihar.hrachyshka:matrix.orgIhar Hrachyshkafor master yes; there will be support for 26.05 for its cycle18:12:28
@antifuchs:asf.computerantifuchsreminds me I should finally disable the aarch64-darwin/x86_64-darwin dual system setup I have on my macs18:39:24
6 Mar 2026
@alexfmpe:matrix.orgalexfmpe trying to build pkgsStatic.perl on aarch64-darwin gives me
/nix/store/3zrx6av2d1141igkcn8477cvbfqpcmcf-bash-5.3p9/bin/bash: line 1: ranlib: command not found
11:55:40
@alexfmpe:matrix.orgalexfmpe and sure enough, ranlib is present in nix-shell for perl but not pkgsStatic.perl 11:56:10
@alexfmpe:matrix.orgalexfmpeis this expected? intended?11:56:26
@symphorien:xlumurb.eusymphorienit's probably prefixed, as it is cross13:00:05
@symphorien:xlumurb.eusymphorienmaybe replace by $RANLIB13:00:22
@ragdoc:matrix.orgragdoc joined the room.15:12:36
@ragdoc:matrix.orgragdocGreetings. I am currently struggling with getting a package.nix I created tied into my nix-darwin flake.nix. Is this documented somewhere I might have missed? I can build the package manually, but I would prefer to have that happen as part of each darwin-rebuild operation.15:20:39
@samasaur:matrix.orgsamasauras in you have a package.nix file and you have a packages flake output that calls that package, so you can nix build it, but you want to know how to call that package from your nix-darwin configuration?15:22:28
@samasaur:matrix.orgsamasaurprobably easiest is to just pkgs.callPackage ./relative/path/to/package.nix but you can get it from the flake output with something like inputs.self.packages.${pkgs.stdenv.hostPlatform.system}.my-package15:23:38
@ragdoc:matrix.orgragdocAs in: I can call "nix build..." and end up with a result softlink in the directory where package.nix resides. There is no surrounding additional wrapper/infrastructure for the package beyond that at this point in time.15:26:24
@ragdoc:matrix.orgragdocOh, the package.nix uses pkgs.buildGoModule, just in case this matters in terms of dependencies or suchlike.15:32:11
@samasaur:matrix.orgsamasaurit shouldn't15:33:34
@samasaur:matrix.orgsamasaurI'd need to see the package.nix file/your configuration to be 100% sure, but im pretty confident pkgs.callPackage should work15:34:19
@samasaur:matrix.orgsamasaurjust stick (pkgs.callPackage ./path/to/package.nix {}) in environment.systemPackages or wherever you want it15:34:57
@ragdoc:matrix.orgragdocThanks @samasaur, I'll try that first. Also, for further reading, https://nix.dev/tutorials/callpackage.html looks like a reasonable starting point, I guess.15:39:09
@ragdoc:matrix.orgragdocSorry, customer call in progress, and it might take a while.15:40:43
@ragdoc:matrix.orgragdoc

I have tried several variants, but keep running into the following:

error: A definition for option `environment.systemPackages."[definition 14-entry 1]"' is not of type `package'.

Unfortunately my searches for this error didn't return a solution so far. Did I miss something painfully obvious?

16:57:31
@ragdoc:matrix.orgragdocAs a side note, I also wonder if the efforts spent on this are worth it, what with x86_64-darwin being discontinued. I'm using an Intel-based Mac.17:03:07
@samasaur:matrix.orgsamasaurpaste the excerpt of your config where you're trying to call the package?17:25:53

Show newer messages


Back to Room ListRoom Version: 6