-
-
Notifications
You must be signed in to change notification settings - Fork 12.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
graphui: init at 1.1.1 #78021
graphui: init at 1.1.1 #78021
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,75 @@ | ||
{ stdenv | ||
, fetchFromGitHub | ||
, meson | ||
, ninja | ||
, vala | ||
, pkg-config | ||
, pantheon | ||
, python3 | ||
, desktop-file-utils | ||
, glib | ||
, graphviz | ||
, gtk3 | ||
, gtksourceview | ||
, libgee | ||
, substituteAll | ||
, wrapGAppsHook | ||
}: | ||
|
||
stdenv.mkDerivation rec { | ||
pname = "graphui"; | ||
version = "1.1.1"; | ||
|
||
src = fetchFromGitHub { | ||
owner = "artemanufrij"; | ||
repo = pname; | ||
rev = version; | ||
sha256 = "19r44rw0chvj7yrqf35rvpg1yziv25d43h392qnwbmifnq1kbfcs"; | ||
}; | ||
|
||
patches = [ | ||
(substituteAll { | ||
src = ./fix-paths.patch; | ||
graphviz = "${graphviz}/bin/"; | ||
}) | ||
]; | ||
|
||
nativeBuildInputs = [ | ||
meson | ||
ninja | ||
vala | ||
pkg-config | ||
python3 | ||
desktop-file-utils | ||
wrapGAppsHook | ||
]; | ||
|
||
buildInputs = [ | ||
glib | ||
gtk3 | ||
gtksourceview | ||
graphviz | ||
libgee | ||
pantheon.granite | ||
]; | ||
|
||
postPatch = '' | ||
chmod +x meson/post_install.py | ||
patchShebangs meson/post_install.py | ||
''; | ||
|
||
passthru = { | ||
updateScript = pantheon.updateScript { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Maybe |
||
attrPath = pname; | ||
}; | ||
}; | ||
|
||
meta = with stdenv.lib; { | ||
description = "Graph visualization based on graphviz"; | ||
homepage = "https://github.com/artemanufrij/graphui"; | ||
maintainers = with maintainers; [ kjuvi ] ++ pantheon.maintainers; | ||
platforms = platforms.linux; | ||
license = licenses.lgpl2Plus; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. they're missing like LICENSE or COPYING file in their repo. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I opened an issue: artemanufrij/graphui#18 |
||
}; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
diff --git a/src/Services/GraphViz.vala b/src/Services/GraphViz.vala | ||
index 213d4e5..192b8dd 100644 | ||
--- a/src/Services/GraphViz.vala | ||
+++ b/src/Services/GraphViz.vala | ||
@@ -76,7 +76,7 @@ namespace GraphUI.Services { | ||
} | ||
output_image = GraphUIApp.instance.CACHE_FOLDER + "/output.svg"; | ||
|
||
- string[] spawn_args = {format, "-T%s".printf (type), "%s".printf (output_txt), "-o", "%s".printf (output_image)}; | ||
+ string[] spawn_args = {"@graphviz@" + format, "-T%s".printf (type), "%s".printf (output_txt), "-o", "%s".printf (output_image)}; | ||
string[] spawn_env = Environ.get (); | ||
|
||
string processout = ""; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it doesn't seem they include this as a
dependency
object in meson. Will PR that.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
artemanufrij/graphui#17