Loading pkgs/tools/misc/gaphor/default.nix +33 −17 Original line number Diff line number Diff line Loading @@ -4,16 +4,23 @@ , copyDesktopItems , gobject-introspection , poetry-core , wrapGAppsHook3 , gtksourceview4 , wrapGAppsHook4 , gtksourceview5 , libadwaita , pango , gaphas , generic , jedi , pycairo , pillow , dulwich , pydot , defusedxml , better-exceptions , babel , pygobject3 , tinycss2 , gtk3 , gtk4 , librsvg , makeDesktopItem , python Loading @@ -21,34 +28,43 @@ buildPythonApplication rec { pname = "gaphor"; version = "2.8.2"; format = "pyproject"; version = "2.26.0"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-+qqsSLjdY2I19fxdfkOEQ9DhTTHccUDll4O5yqtLiz0="; hash = "sha256-e0K5bfgPqlJh8qrAz40c/w3ANzkfa/6txuqzQDJYXfE="; }; pythonRelaxDeps = [ "defusedxml" ]; nativeBuildInputs = [ copyDesktopItems gobject-introspection poetry-core wrapGAppsHook3 wrapGAppsHook4 ]; buildInputs = [ gtksourceview4 gtksourceview5 pango libadwaita ]; propagatedBuildInputs = [ gaphas generic jedi build-system = [ poetry-core ]; dependencies = [ pycairo pygobject3 gaphas generic tinycss2 babel jedi better-exceptions pydot pillow defusedxml dulwich ]; desktopItems = makeDesktopItem { Loading @@ -59,7 +75,7 @@ buildPythonApplication rec { desktopName = "Gaphor"; }; # Disable automatic wrapGAppsHook3 to prevent double wrapping # Disable automatic wrapGAppsHook4 to prevent double wrapping dontWrapGApps = true; postInstall = '' Loading @@ -69,7 +85,7 @@ buildPythonApplication rec { preFixup = '' makeWrapperArgs+=( "''${gappsWrapperArgs[@]}" \ --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ --prefix XDG_DATA_DIRS : "${gtk4}/share/gsettings-schemas/${gtk4.name}/" \ --set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" ) ''; Loading @@ -79,6 +95,6 @@ buildPythonApplication rec { maintainers = [ ]; homepage = "https://github.com/gaphor/gaphor"; license = licenses.asl20; platforms = [ "x86_64-linux" ]; platforms = lib.platforms.linux; }; } Loading
pkgs/tools/misc/gaphor/default.nix +33 −17 Original line number Diff line number Diff line Loading @@ -4,16 +4,23 @@ , copyDesktopItems , gobject-introspection , poetry-core , wrapGAppsHook3 , gtksourceview4 , wrapGAppsHook4 , gtksourceview5 , libadwaita , pango , gaphas , generic , jedi , pycairo , pillow , dulwich , pydot , defusedxml , better-exceptions , babel , pygobject3 , tinycss2 , gtk3 , gtk4 , librsvg , makeDesktopItem , python Loading @@ -21,34 +28,43 @@ buildPythonApplication rec { pname = "gaphor"; version = "2.8.2"; format = "pyproject"; version = "2.26.0"; pyproject = true; src = fetchPypi { inherit pname version; hash = "sha256-+qqsSLjdY2I19fxdfkOEQ9DhTTHccUDll4O5yqtLiz0="; hash = "sha256-e0K5bfgPqlJh8qrAz40c/w3ANzkfa/6txuqzQDJYXfE="; }; pythonRelaxDeps = [ "defusedxml" ]; nativeBuildInputs = [ copyDesktopItems gobject-introspection poetry-core wrapGAppsHook3 wrapGAppsHook4 ]; buildInputs = [ gtksourceview4 gtksourceview5 pango libadwaita ]; propagatedBuildInputs = [ gaphas generic jedi build-system = [ poetry-core ]; dependencies = [ pycairo pygobject3 gaphas generic tinycss2 babel jedi better-exceptions pydot pillow defusedxml dulwich ]; desktopItems = makeDesktopItem { Loading @@ -59,7 +75,7 @@ buildPythonApplication rec { desktopName = "Gaphor"; }; # Disable automatic wrapGAppsHook3 to prevent double wrapping # Disable automatic wrapGAppsHook4 to prevent double wrapping dontWrapGApps = true; postInstall = '' Loading @@ -69,7 +85,7 @@ buildPythonApplication rec { preFixup = '' makeWrapperArgs+=( "''${gappsWrapperArgs[@]}" \ --prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \ --prefix XDG_DATA_DIRS : "${gtk4}/share/gsettings-schemas/${gtk4.name}/" \ --set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache" ) ''; Loading @@ -79,6 +95,6 @@ buildPythonApplication rec { maintainers = [ ]; homepage = "https://github.com/gaphor/gaphor"; license = licenses.asl20; platforms = [ "x86_64-linux" ]; platforms = lib.platforms.linux; }; }