@@ -1,13 +1,15 @@
11{ lib
2−, mkDerivation
2+, stdenv
33, fetchFromGitHub
44, substituteAll
5+, wrapQtAppsHook
56, qmake
7+, qtsvg
68, qtx11extras
79, graphviz
810}:
911
10−mkDerivation rec {
12+stdenv.mkDerivation rec {
1113 pname = "qvge";
1214 version = "0.6.3";
1315
@@ -25,15 +27,15 @@ mkDerivation rec {
2527 inherit graphviz;
2628 });
2729
28− nativeBuildInputs = [ qmake ];
30+ nativeBuildInputs = [ wrapQtAppsHook qmake ];
2931
30− buildInputs = [ qtx11extras ];
32+ buildInputs = if stdenv.isDarwin then [ qtsvg ] else [ qtx11extras ];
3133
3234 meta = with lib; {
3335 description = "Qt Visual Graph Editor";
3436 homepage = "https://github.com/ArsMasiuk/qvge";
3537 license = licenses.mit;
3638 maintainers = with maintainers; [ sikmir ];
37− platforms = with platforms; linux;
39+ platforms = platforms.unix;
3840 };
3941}