tangled
alpha
login
or
join now
pyrox.dev
/
nixpkgs
lol
0
fork
atom
overview
issues
pulls
pipelines
qvge: init at 0.6.1
Nikolay Korotkiy
5 years ago
986d973f
27630634
+54
3 changed files
expand all
collapse all
unified
split
pkgs
applications
graphics
qvge
default.nix
set-graphviz-path.patch
top-level
all-packages.nix
+39
pkgs/applications/graphics/qvge/default.nix
···
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
{ lib
2
+
, mkDerivation
3
+
, fetchFromGitHub
4
+
, substituteAll
5
+
, qmake
6
+
, qtx11extras
7
+
, graphviz
8
+
}:
9
+
10
+
mkDerivation rec {
11
+
pname = "qvge";
12
+
version = "0.6.1";
13
+
14
+
src = fetchFromGitHub {
15
+
owner = "ArsMasiuk";
16
+
repo = pname;
17
+
rev = "v${version}";
18
+
sha256 = "0j4ih03nl6iihhnxrfldkarg9hvxb62lpr58xspn417d3gj6xjll";
19
+
};
20
+
21
+
prePatch = "cd src";
22
+
23
+
patches = (substituteAll {
24
+
src = ./set-graphviz-path.patch;
25
+
inherit graphviz;
26
+
});
27
+
28
+
nativeBuildInputs = [ qmake ];
29
+
30
+
buildInputs = [ qtx11extras ];
31
+
32
+
meta = with lib; {
33
+
description = "Qt Visual Graph Editor";
34
+
homepage = "https://github.com/ArsMasiuk/qvge";
35
+
license = licenses.mit;
36
+
maintainers = with maintainers; [ sikmir ];
37
+
platforms = with platforms; linux;
38
+
};
39
+
}
+13
pkgs/applications/graphics/qvge/set-graphviz-path.patch
···
0
0
0
0
0
0
0
0
0
0
0
0
0
···
1
+
diff --git i/commonui/CNodeEditorUIController.cpp w/commonui/CNodeEditorUIController.cpp
2
+
index 7dacd48..64983e4 100644
3
+
--- i/commonui/CNodeEditorUIController.cpp
4
+
+++ w/commonui/CNodeEditorUIController.cpp
5
+
@@ -123,7 +123,7 @@ CNodeEditorUIController::CNodeEditorUIController(CMainWindow *parent) :
6
+
QString pathToGraphviz = QCoreApplication::applicationDirPath() + "/../tools/graphviz";
7
+
m_optionsData.graphvizPath = QFileInfo(pathToGraphviz).absoluteFilePath();
8
+
#else
9
+
- m_optionsData.graphvizPath = "";
10
+
+ m_optionsData.graphvizPath = "@graphviz@/bin";
11
+
#endif
12
+
m_gvController->setPathToGraphviz(m_optionsData.graphvizPath);
13
+
+2
pkgs/top-level/all-packages.nix
···
6723
6724
quota = if stdenv.isLinux then linuxquota else unixtools.quota;
6725
0
0
6726
qview = libsForQt5.callPackage ../applications/graphics/qview {};
6727
6728
wayback_machine_downloader = callPackage ../applications/networking/wayback_machine_downloader { };
···
6723
6724
quota = if stdenv.isLinux then linuxquota else unixtools.quota;
6725
6726
+
qvge = libsForQt5.callPackage ../applications/graphics/qvge { };
6727
+
6728
qview = libsForQt5.callPackage ../applications/graphics/qview {};
6729
6730
wayback_machine_downloader = callPackage ../applications/networking/wayback_machine_downloader { };