forked from mirrors/nixpkgs
Merge #161856: gaphor: 2.6.5 -> 2.8.2
This commit is contained in:
commit
26c6b1cfd0
1 changed files with 32 additions and 11 deletions
|
@ -1,44 +1,55 @@
|
||||||
{ lib
|
{ lib
|
||||||
, buildPythonApplication
|
, buildPythonApplication
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, poetry-core
|
|
||||||
, gobject-introspection
|
|
||||||
, pango
|
|
||||||
, gtksourceview4
|
|
||||||
, wrapGAppsHook
|
|
||||||
, makeDesktopItem
|
|
||||||
, copyDesktopItems
|
, copyDesktopItems
|
||||||
|
, gobject-introspection
|
||||||
|
, poetry-core
|
||||||
|
, wrapGAppsHook
|
||||||
|
, gtksourceview4
|
||||||
|
, pango
|
||||||
, gaphas
|
, gaphas
|
||||||
, generic
|
, generic
|
||||||
|
, jedi
|
||||||
, pycairo
|
, pycairo
|
||||||
, pygobject3
|
, pygobject3
|
||||||
, python
|
|
||||||
, tinycss2
|
, tinycss2
|
||||||
|
, gtk3
|
||||||
|
, librsvg
|
||||||
|
, makeDesktopItem
|
||||||
|
, python
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonApplication rec {
|
buildPythonApplication rec {
|
||||||
pname = "gaphor";
|
pname = "gaphor";
|
||||||
version = "2.6.5";
|
version = "2.8.2";
|
||||||
|
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "sha256-IFsbWx5lblKsnEibVihM6ZPRoydXC+JM1gdZEUUTKxw=";
|
sha256 = "sha256-+qqsSLjdY2I19fxdfkOEQ9DhTTHccUDll4O5yqtLiz0=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
poetry-core copyDesktopItems gobject-introspection wrapGAppsHook
|
copyDesktopItems
|
||||||
|
gobject-introspection
|
||||||
|
poetry-core
|
||||||
|
wrapGAppsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# Setting gobject-introspection on booth nativeBuildInputs and
|
# Setting gobject-introspection on booth nativeBuildInputs and
|
||||||
# buildInputs because of #56943. This recognizes pango, avoiding
|
# buildInputs because of #56943. This recognizes pango, avoiding
|
||||||
# a "ValueError: Namespace PangoCairo not available".
|
# a "ValueError: Namespace PangoCairo not available".
|
||||||
buildInputs = [ gobject-introspection gtksourceview4 pango ];
|
buildInputs = [
|
||||||
|
gobject-introspection
|
||||||
|
gtksourceview4
|
||||||
|
pango
|
||||||
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
gaphas
|
gaphas
|
||||||
generic
|
generic
|
||||||
|
jedi
|
||||||
pycairo
|
pycairo
|
||||||
pygobject3
|
pygobject3
|
||||||
tinycss2
|
tinycss2
|
||||||
|
@ -52,10 +63,20 @@ buildPythonApplication rec {
|
||||||
desktopName = "Gaphor";
|
desktopName = "Gaphor";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
# We need to wrap it manually to resolve all icons
|
||||||
|
dontWrapGApps = true;
|
||||||
|
|
||||||
postInstall = ''
|
postInstall = ''
|
||||||
install -Dm644 $out/${python.sitePackages}/gaphor/ui/icons/hicolor/scalable/apps/org.gaphor.Gaphor.svg $out/share/pixmaps/gaphor.svg
|
install -Dm644 $out/${python.sitePackages}/gaphor/ui/icons/hicolor/scalable/apps/org.gaphor.Gaphor.svg $out/share/pixmaps/gaphor.svg
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
preFixup = ''
|
||||||
|
wrapProgram $out/bin/gaphor \
|
||||||
|
''${gappsWrapperArgs[@]} \
|
||||||
|
--prefix XDG_DATA_DIRS : "${gtk3}/share/gsettings-schemas/${gtk3.name}/" \
|
||||||
|
--set GDK_PIXBUF_MODULE_FILE "${librsvg.out}/lib/gdk-pixbuf-2.0/2.10.0/loaders.cache"
|
||||||
|
'';
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Simple modeling tool written in Python";
|
description = "Simple modeling tool written in Python";
|
||||||
maintainers = with maintainers; [ wolfangaukang ];
|
maintainers = with maintainers; [ wolfangaukang ];
|
||||||
|
|
Loading…
Add table
Reference in a new issue