Merge pull request #103647 from sikmir/qvge

qvge: init at 0.6.1
This commit is contained in:
Dmitry Kalinkin 2020-11-14 08:40:38 -05:00 committed by GitHub
commit 832665765f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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

@ -6731,6 +6731,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 { };