qvge: init at 0.6.1

This commit is contained in:
Nikolay Korotkiy 2020-11-13 01:14:58 +03:00
parent 27630634cb
commit 986d973ff4
No known key found for this signature in database
GPG key ID: D1DE6D7F693663A5
3 changed files with 54 additions and 0 deletions

View file

@ -0,0 +1,39 @@
{ lib
, mkDerivation
, fetchFromGitHub
, substituteAll
, qmake
, qtx11extras
, graphviz
}:
mkDerivation rec {
pname = "qvge";
version = "0.6.1";
src = fetchFromGitHub {
owner = "ArsMasiuk";
repo = pname;
rev = "v${version}";
sha256 = "0j4ih03nl6iihhnxrfldkarg9hvxb62lpr58xspn417d3gj6xjll";
};
prePatch = "cd src";
patches = (substituteAll {
src = ./set-graphviz-path.patch;
inherit graphviz;
});
nativeBuildInputs = [ qmake ];
buildInputs = [ qtx11extras ];
meta = with lib; {
description = "Qt Visual Graph Editor";
homepage = "https://github.com/ArsMasiuk/qvge";
license = licenses.mit;
maintainers = with maintainers; [ sikmir ];
platforms = with platforms; linux;
};
}

View file

@ -0,0 +1,13 @@
diff --git i/commonui/CNodeEditorUIController.cpp w/commonui/CNodeEditorUIController.cpp
index 7dacd48..64983e4 100644
--- i/commonui/CNodeEditorUIController.cpp
+++ w/commonui/CNodeEditorUIController.cpp
@@ -123,7 +123,7 @@ CNodeEditorUIController::CNodeEditorUIController(CMainWindow *parent) :
QString pathToGraphviz = QCoreApplication::applicationDirPath() + "/../tools/graphviz";
m_optionsData.graphvizPath = QFileInfo(pathToGraphviz).absoluteFilePath();
#else
- m_optionsData.graphvizPath = "";
+ m_optionsData.graphvizPath = "@graphviz@/bin";
#endif
m_gvController->setPathToGraphviz(m_optionsData.graphvizPath);

View file

@ -6723,6 +6723,8 @@ in
quota = if stdenv.isLinux then linuxquota else unixtools.quota;
qvge = libsForQt5.callPackage ../applications/graphics/qvge { };
qview = libsForQt5.callPackage ../applications/graphics/qview {};
wayback_machine_downloader = callPackage ../applications/networking/wayback_machine_downloader { };