gaphor: 3.0.0 → 3.1.0
This commit is contained in:
parent
7701707afc
commit
ee4b8baf8b
@ -1,43 +1,39 @@
|
|||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
copyDesktopItems,
|
glib,
|
||||||
gobject-introspection,
|
gobject-introspection,
|
||||||
wrapGAppsHook4,
|
wrapGAppsHook4,
|
||||||
gtksourceview5,
|
gtksourceview5,
|
||||||
libadwaita,
|
libadwaita,
|
||||||
pango,
|
|
||||||
gtk4,
|
|
||||||
librsvg,
|
|
||||||
makeDesktopItem,
|
|
||||||
python3Packages,
|
python3Packages,
|
||||||
nix-update-script,
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
python3Packages.buildPythonApplication rec {
|
python3Packages.buildPythonApplication rec {
|
||||||
pname = "gaphor";
|
pname = "gaphor";
|
||||||
version = "3.0.0";
|
version = "3.1.0";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "gaphor";
|
||||||
hash = "sha256-I5n0XeZLQw4qje6gwh2aMu5Zo5tuXgESHhkR0xegaYM=";
|
repo = "gaphor";
|
||||||
|
tag = version;
|
||||||
|
hash = "sha256-0xivimpYM1gwOO2QrovYiJPNUfuGclr+F/WyHLNl+jw=";
|
||||||
};
|
};
|
||||||
|
|
||||||
pythonRelaxDeps = [
|
pythonRelaxDeps = [
|
||||||
"defusedxml"
|
|
||||||
"gaphas"
|
|
||||||
"pydot"
|
"pydot"
|
||||||
|
"pygobject"
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
copyDesktopItems
|
glib
|
||||||
gobject-introspection
|
gobject-introspection
|
||||||
wrapGAppsHook4
|
wrapGAppsHook4
|
||||||
];
|
];
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
gtksourceview5
|
gtksourceview5
|
||||||
pango
|
|
||||||
libadwaita
|
libadwaita
|
||||||
];
|
];
|
||||||
|
|
||||||
@ -58,25 +54,29 @@ python3Packages.buildPythonApplication rec {
|
|||||||
tinycss2
|
tinycss2
|
||||||
];
|
];
|
||||||
|
|
||||||
desktopItems = [
|
postInstall = ''
|
||||||
(makeDesktopItem {
|
install -Dm644 data/org.gaphor.Gaphor.appdata.xml -t $out/share/metainfo/
|
||||||
name = pname;
|
install -Dm644 data/org.gaphor.Gaphor.desktop -t $out/share/applications/
|
||||||
exec = "gaphor";
|
install -Dm644 data/org.gaphor.Gaphor.xml -t $out/share/mime/packages/
|
||||||
icon = "gaphor";
|
install -Dm644 data/logos/org.gaphor.Gaphor.svg -t $out/share/icons/hicolor/scalable/apps/
|
||||||
comment = meta.description;
|
install -Dm644 data/logos/org.gaphor.Gaphor-symbolic.svg -t $out/share/icons/hicolor/symbolic/apps/
|
||||||
desktopName = "Gaphor";
|
|
||||||
})
|
|
||||||
];
|
|
||||||
|
|
||||||
# Disable automatic wrapGAppsHook4 to prevent double wrapping
|
install -Dm644 data/logos/gaphor-24x24.png $out/share/icons/hicolor/24x24/apps/org.gaphor.Gaphor.png
|
||||||
|
install -Dm644 data/logos/gaphor-48x48.png $out/share/icons/hicolor/48x48/apps/org.gaphor.Gaphor.png
|
||||||
|
|
||||||
|
install -Dm644 gaphor/ui/installschemas/org.gaphor.Gaphor.gschema.xml -t $out/share/glib-2.0/schemas/
|
||||||
|
glib-compile-schemas $out/share/glib-2.0/schemas/
|
||||||
|
|
||||||
|
install -Dm644 data/org.gaphor.Gaphor.service -t $out/share/dbus-1/services/
|
||||||
|
substituteInPlace $out/share/dbus-1/services/org.gaphor.Gaphor.service \
|
||||||
|
--replace-fail "Exec=/usr/bin/gaphor" "Exec=$out/bin/gaphor"
|
||||||
|
'';
|
||||||
|
|
||||||
|
# Prevent double wrapping
|
||||||
dontWrapGApps = true;
|
dontWrapGApps = true;
|
||||||
|
|
||||||
preFixup = ''
|
preFixup = ''
|
||||||
makeWrapperArgs+=(
|
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
|
||||||
"''${gappsWrapperArgs[@]}" \
|
|
||||||
--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"
|
|
||||||
)
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
passthru = {
|
passthru = {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user