[Nix-dev] kbuildsococa4 & calligra

phreedom at yandex.ru phreedom at yandex.ru
Thu Mar 28 06:46:42 CET 2013


On Среда 27 марта 2013 16:56:56 Vladimír Čunát wrote:
> On 03/25/2013 06:29 PM, Eelco Dolstra wrote:
> > FWIW, this is also done by the KDE module in NixOS.  Unfortunately, that
> > doesn't help you when installing via nix-env.
> 
> Lately I've been unable to run kate, even via booting into NixOS env
> where it used to work. I tried to clear environment, or override PATH
> and similar things, but I always get an immediate crash anyway.
> Unfortunately there seems to be a serious breach of purity, KDE design
> seems very unfriendly to such things.
> 
> You may also want to see this https://bugs.kde.org/show_bug.cgi?id=315296

Here we go again. It isn't even about calligra or other kde apps being unable 
to try loading "their" versions of libs. I'm sure you can patch it somehow.

KDE heavily relies on frameworks and plugins, which in practice means that KDE 
regularly does stuff like loading some/all libs from $SOME_PLUGIN_DIR. If the 
plugin libs are compiled againt different versions of deps or api, it sometimes 
results in (not so )subtle breakage. Thus mixing new and old builds using nix-
env is pretty much impossible.

To fix this, you probably have to identify all plugin-based frameworks, put 
them into separate packages, and version the framework plugin dirs using 
framework's derivation hash or something like this.

And of course, this can only fix crashes. You'll still have unintuitive 
behavior like packages sometimes stop sharing plugins when you update one of 
them.


More information about the nix-dev mailing list