diff options
author | Nikolay Korotkiy <sikmir@gmail.com> | 2020-11-13 01:14:58 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@gmail.com> | 2020-11-13 23:53:50 +0300 |
commit | 986d973ff42a9dd0ba25b0c47a4a70d1bf5eaf9f (patch) | |
tree | 514dae6cc63a991a2757144d5fc84243c9f8b90f /pkgs/applications/graphics/qvge | |
parent | 27630634cbe71100bfd17e6045ac8756b1b50189 (diff) | |
download | nixpkgs-986d973ff42a9dd0ba25b0c47a4a70d1bf5eaf9f.tar nixpkgs-986d973ff42a9dd0ba25b0c47a4a70d1bf5eaf9f.tar.gz nixpkgs-986d973ff42a9dd0ba25b0c47a4a70d1bf5eaf9f.tar.bz2 nixpkgs-986d973ff42a9dd0ba25b0c47a4a70d1bf5eaf9f.tar.lz nixpkgs-986d973ff42a9dd0ba25b0c47a4a70d1bf5eaf9f.tar.xz nixpkgs-986d973ff42a9dd0ba25b0c47a4a70d1bf5eaf9f.tar.zst nixpkgs-986d973ff42a9dd0ba25b0c47a4a70d1bf5eaf9f.zip |
qvge: init at 0.6.1
Diffstat (limited to 'pkgs/applications/graphics/qvge')
-rw-r--r-- | pkgs/applications/graphics/qvge/default.nix | 39 | ||||
-rw-r--r-- | pkgs/applications/graphics/qvge/set-graphviz-path.patch | 13 |
2 files changed, 52 insertions, 0 deletions
diff --git a/pkgs/applications/graphics/qvge/default.nix b/pkgs/applications/graphics/qvge/default.nix new file mode 100644 index 00000000000..d8080e6fbb4 --- /dev/null +++ b/pkgs/applications/graphics/qvge/default.nix @@ -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; + }; +} diff --git a/pkgs/applications/graphics/qvge/set-graphviz-path.patch b/pkgs/applications/graphics/qvge/set-graphviz-path.patch new file mode 100644 index 00000000000..d18eb81c5d0 --- /dev/null +++ b/pkgs/applications/graphics/qvge/set-graphviz-path.patch @@ -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); + |