!lheuhImcToQZYTQTuI:nixos.org

Nix on macOS

1199 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
14 Mar 2026
@kaynetik:matrix.orgkaynetik

New maintainer & Lua5.5 update for a package that's relevant for AeroSpace + sbar users ==> https://github.com/NixOS/nixpkgs/pull/498766

Could an existing maintainer take a look and merge? The maintainer that's on that package is non-responsive, and it's breaking a flow for people that did an update in the past 8 days.
This is a small, low-risk package update (0 Linux rebuilds, 1 Darwin rebuild), any nixpkgs committer can merge it.

06:53:07
@kaynetik:matrix.orgkaynetik set a profile picture.06:53:29
@weethet:catgirl.cloudWeetHet

This is way too cursed, right?

{ config, lib, options, ... }:
let
  targetDockRestart = ''
    echo >&2 "restarting Dock..."
    killall -qu ${lib.escapeShellArg config.system.primaryUser} Dock || true
  '';

  hasUserDefaults =
    d: d ? userDefaults && lib.hasInfix "user defaults" (d.userDefaults.text.content or "");

  defs = options.system.activationScripts.definitions;
  upstream = lib.findFirst hasUserDefaults { } defs;

  originalScript = upstream.userDefaults.text.content;
in
{
  config.system.activationScripts.userDefaults.text = lib.mkForce (
    lib.replaceStrings [ targetDockRestart ] [ "" ] originalScript
  );
}
14:42:04
@weethet:catgirl.cloudWeetHet *

This is way too cursed, right?

{ config, lib, options, ... }:
let
  targetDockRestart = ''
    echo >&2 "restarting Dock..."
    killall -qu ${lib.escapeShellArg config.system.primaryUser} Dock || true
  '';

  hasUserDefaults =
    d: d ? userDefaults && lib.hasInfix targetDockRestart (d.userDefaults.text.content or "");

  defs = options.system.activationScripts.definitions;
  upstream = lib.findFirst hasUserDefaults { } defs;

  originalScript = upstream.userDefaults.text.content;
in
{
  config.system.activationScripts.userDefaults.text = lib.mkForce (
    lib.replaceStrings [ targetDockRestart ] [ "" ] originalScript
  );
}
14:44:32
@nasso:matrix.orgnasso does anyone have any guide or example somewhere for noobs like me to figure out how to install an app that is only distributed as a .dmg on the internet? (in my case, it's tidal, the music streaming service) 21:25:15
@nasso:matrix.orgnasso i vaguely remember seeing somewhere someone downloading the .dmg through web archive and then using undmg (or something like that?) 21:26:22
@emilazy:matrix.orgemilyyou should be able to get the cask package for it from https://github.com/BatteredBunny/brew-nix or https://github.com/atahanyorganci/nix-casks fwiw21:29:36
@emilazy:matrix.orgemily(as a native Nix package)21:29:40
@emilazy:matrix.orgemilyhttps://github.com/Homebrew/homebrew-cask/blob/HEAD/Casks/t/tidal.rb apparently it's actually available as a zip :)21:30:02
@emilazy:matrix.orgemilyit should be simple to write a package for too though21:30:14
@emilazy:matrix.orgemily pretty much just using the .zip as src and moving it into $out 21:30:32
@emilazy:matrix.orgemily(and could be upstreamed to Nixpkgs if you wanted)21:30:42
@emilazy:matrix.orgemilybut just saying that you can also get it for free from the converted cask packages :)21:30:54
@lektricitee:matrix.orglektrik joined the room.21:31:13
@nasso:matrix.orgnassowait, do i need to go through homebrew for this? i actually managed to avoid homebrew so far21:31:20
@nasso:matrix.orgnasso(because its annoying in my multi-user setup)21:31:32
@emilazy:matrix.orgemilyno, those repositories just convert Homebrew casks to Nix packages automatically21:31:37
@nasso:matrix.orgnassoooohh21:31:41
@emilazy:matrix.orgemilythey don't require using Homebrew at all21:31:43
@emilazy:matrix.orgemily but for casks that just extract simple .zips or .dmgs they should work fine 21:31:53
@nasso:matrix.orgnassooh that is very interesting actually it might be useful for some other things21:32:01
@emilazy:matrix.orgemilyideally we'd have everything in Nixpkgs though, but just saying there's a quicker route if you want to avoid the rabbit hole of sending a PR for a new package :)21:32:18
@nasso:matrix.orgnassoso wait should i use BatteredBunny's or atahanyorganici's project? should i flip a coin21:33:25
@emilazy:matrix.orgemilyI genuinely don't even know what the difference is :)21:34:25
@emilazy:matrix.orgemilyI think one of them converts stuff dynamically and the other has a generated JSON file or something21:34:36
@emilazy:matrix.orgemilyiirc one of them didn't work with Lix at some point, not sure if that's still true21:34:44
@nasso:matrix.orgnasso its something i eventually want to learn to do! these past few days of learning nix have been very fun (especially thanks to everyone here being so kind and helpful <3) and now i want to make flakes for what we do at work lol 21:34:45
15 Mar 2026
@nasso:matrix.orgnasso ok i decided to go with atahanyorganci/nix-casks and it looks like it works 01:31:31
@samasaur:matrix.orgsamasaur

I'm trying to update xcodegen in nixpkgs. the update bot was able to get the new version and hash, but the package isn't available on linux so it didn't get farther than that. Locally I get the same hash that the update bot, but when trying to build it, I get into the swift build, and then it errors like this:

xcodegen> Fetching https://github.com/yonaskolb/JSONUtilities.git
xcodegen> Fetching https://github.com/jakeheis/SwiftCLI.git
xcodegen> Fetching https://github.com/kylef/Spectre.git
xcodegen> Fetching https://github.com/tadija/AEXML.git
xcodegen> Fetching https://github.com/kylef/PathKit.git
xcodegen> Fetching https://github.com/onevcat/Rainbow.git
xcodegen> Fetching https://github.com/mxcl/Version
xcodegen> Fetching https://github.com/tuist/XcodeProj.git
xcodegen> Fetching https://github.com/jpsim/Yams.git
xcodegen> Fetching https://github.com/freddi-kit/ArtifactBundleGen
xcodegen> Fetching https://github.com/kylef/Spectre.git
xcodegen> Fetching https://github.com/onevcat/Rainbow.git
xcodegen> Fetching https://github.com/yonaskolb/JSONUtilities.git
xcodegen> Fetching https://github.com/mxcl/Version
xcodegen> Fetching https://github.com/tuist/XcodeProj.git
xcodegen> Fetching https://github.com/kylef/PathKit.git
xcodegen> Fetching https://github.com/jpsim/Yams.git
xcodegen> Fetching https://github.com/jakeheis/SwiftCLI.git
xcodegen> Fetching https://github.com/freddi-kit/ArtifactBundleGen
xcodegen> error: Failed to clone repository https://github.com/yonaskolb/JSONUtilities.git:
xcodegen>     Cloning into bare repository '/nix/var/nix/builds/nix-46814-58828094/source/.build/repositories/JSONUtilities-1696c737'...
xcodegen>     fatal: unable to access 'https://github.com/yonaskolb/JSONUtilities.git/': SSL certificate OpenSSL verify result: unable to get local issuer certificate (20)

It's not consistent which dependency generates this error, and I get it on two separate machines. AFAIK we haven't changed the nixpkgs Swift packaging recently, nor have I updates these machines, but this smells like a darwin-specific problem to me. Has anyone experienced anything like this before?

05:38:08
@samasaur:matrix.orgsamasaur

or wanna try applying this diff to nixpkgs and then trying nix-build -A xcodgen?

Commit ID: 74e6051a426fecd38ec62c07967c3b81fc4bf0cc
Change ID: yzzplknuuvrllxzqqomzwywmrmopzpky
Author   : Sam <30577766+Samasaur1@users.noreply.github.com> (2026-03-13 19:42:16)
Committer: Sam <30577766+Samasaur1@users.noreply.github.com> (2026-03-13 19:44:31)

    (no description set)

diff --git a/pkgs/by-name/xc/xcodegen/package.nix b/pkgs/by-name/xc/xcodegen/package.nix
index dff37b0ff8..ca4171d92b 100644
--- a/pkgs/by-name/xc/xcodegen/package.nix
+++ b/pkgs/by-name/xc/xcodegen/package.nix
@@ -16,13 +16,13 @@
 
 swiftPackages.stdenv.mkDerivation (finalAttrs: {
   pname = "xcodegen";
-  version = "2.44.1";
+  version = "2.45.3";
 
   src = fetchFromGitHub {
     owner = "yonaskolb";
     repo = "XcodeGen";
     tag = finalAttrs.version;
-    hash = "sha256-RQlmQfmrLZRrgIA09fE84JuqmYkkrz4KSw2dvYXw0Rs=";
+    hash = "sha256-ExuzmiH4d07rSXr3ygqF3sfJP8NMOTlfEmEYwmH3FVY=";
   };
 
   # Including SwiftPM as a nativeBuildInput provides a buildPhase for you.
05:39:06

Show newer messages


Back to Room ListRoom Version: 6