Why are some packages only available on linux while they officially support macos?

I am trying to install krita with nix-darwin but since it is only available on linux with nixpkgs, I have to use homebrew to install krita instead. Any idea why is that so?

The platforms for krita are set to lib.platforms.linux as seen here. You can build on unsupported platforms and report your findings, maybe the package should run fine on darwin c:

It would seem that the packaging work necessary to build it with nix on darwin hasn’t been done. How much work that would really involve I can’t even guess without looking a lot deeper.

I see. So it just requires contribution rather than there is some reason blocking it.

Well, if there’s something about the program that makes packaging it for nix difficult, that might be why no one has done it. Or it could just be that no one with the ability to do so has been interested.

1 Like

Last time I looked at it, there are some assumptions in the packaging that would have to be untangled to build KDE applications on macOS when they support it.

1 Like

I mean mostly qt (the framework itself, in nixpkgs) is tough to get working correctly, probably krita itself shouldn’t be difficult to build once the qt bits are sorted.

In the meantime you can try to package the upstream .dmg as krita-bin, say. There’s examples of such -bin packages in nixpkgs.

1 Like

I think the simple answer is that there are 5x as many people using Nix on Linux vs on macOS: 2025 Community Survey Results