Change:
sudo nix-channel --update nixos-rebuild switch Traceback (most recent call last): File "/build/zim-0.74.2/nixrunsetup", line 8, in <moduleexec(compile(getattr(tokenize, 'open', open)(file).read().replace('rn', 'n'), file, 'exec')) File "", line 25, in <moduleimport makeman # helper script File "/build/zim-", line 13, in <modulefrom import HelpCommand File "/build/zim-", line 31, in <modulefrom zim.notebook import Notebook, Path,  File "/build/zim-", line 43, in <modulefrom .info import NotebookInfo, NotebookInfoList,  File "/build/zim-", line 19, in <modulefrom .notebook import NotebookConfig, resolverelativeconfig File "/build/zim-", line 17, in <moduleimport zim.templates File "/build/zim-", line 61, in <modulefrom zim.templates.functions import buildtemplatefunctions File "/build/zim-", line 24, in <modulefrom import htmlencode File "/build/zim-", line 78, in <modulefrom zim.plugins import PluginManager File "/build/zim-", line 51, in <modulefrom zim.actions import hasaction, getactions File "/build/zim-", line 73, in <modulePRIMARYMODIFIERMASK = getmodifiermask() File "/build/zim-", line 68, in getmodifiermask assert Gtk AssertionError error: builder for '/nix/store/qvn6yxkgldm4idrdipsm7iy14yq35j80-zim-' failed with exit code 1 error: 1 dependencies of derivation '/nix/store/792pgp4xzfj0c8miff5gp6pf997zxn8l-system-' failed to build error: 1 dependencies of derivation '/nix/store/anw5qfbacnqhf727l51sclarz4wngb68-nixos-system-bx26-' failed to build Add any other context about the problem here. <!-- Please @ people who are in the list of the offending package or module. If in doubt, check for whoever last touched something. --- system: host os: multi-user?: sandbox: version: channels(root): channels(k): nixpkgs:

Discussion:
python3Packages.buildPythonApplication rec { pname = "zim"; <del> version = "0.74.2"; </del> <ins> version = "0.74.3"; </ins> src = fetchurl { url = "https://zim-wiki.org/downloads/zim-${version}.tar.gz"; <del> sha256 = "sha256-tZxBlpps2nLThSOq3WJ42iUQ4NG1Lb463bvDQ+djZJA="; </del> <ins> sha256 = "sha256-3ehPIkhsf1JnC9Qx3kQ6ilvRaBB7auBm2C1HOuNGzRU="; </ins> }; <del> buildInputs = [ gtk3 gobject-introspection wrapGAppsHook gnome.adwaita-icon-theme ]; </del> <ins> buildInputs = [ gtk3 gobject-introspection gnome.adwaita-icon-theme ]; </ins> propagatedBuildInputs = with python3Packages; [ pyxdg pygobject3 ]; <ins> # see https://github.com/NixOS/nixpkgs/issues/56943#issuecomment-1131643663 nativeBuildInputs = [ gobject-introspection wrapGAppsHook ]; dontWrapGApps = true; </ins> preFixup = '' <del> export makeWrapperArgs="--prefix XDG_DATA_DIRS : $out/share --argv0 $out/bin/.zim-wrapped" </del> <ins> makeWrapperArgs+=(--prefix XDG_DATA_DIRS : $out/share) makeWrapperArgs+=(--argv0 $out/bin/.zim-wrapped) makeWrapperArgs+=("''${gappsWrapperArgs[@]}") </ins> ''; # RuntimeError: could not create GtkClipboard object

meta = with lib; { description = "A desktop wiki"; homepage = "https://zim-wiki.org/"; <ins> changelog = "https://github.com/zim-desktop-wiki/zim-desktop-wiki/blob/${version}/CHANGELOG.md"; </ins> license = licenses.gpl2Plus; maintainers = with maintainers; [ pSub ]; broken = stdenv.isDarwin; # https://github.com/NixOS/nixpkgs/pull/52658#issuecomment-449565790