13 stdenv.mkDerivation rec {
18 url = "https://github.com/dvorka/mindforger/releases/download/${version}/mindforger_${version}.tgz";
19 sha256 = "1pghsw8kwvjhg3jpmjs0n892h2l0pm0cs6ymi8b23fwk0kfj67rd";
22 nativeBuildInputs = [ qmake wrapGAppsHook3 wrapQtAppsHook ];
23 buildInputs = [ qtbase qtwebengine cmark-gfm ];
28 # this makes the package relocatable - removes hardcoded references to /usr
30 # this fixes compilation with QtWebEngine - referencing a commit trying to upstream the change - see https://github.com/dvorka/mindforger/pull/1357
32 url = "https://github.com/dvorka/mindforger/commit/d28e2bade0278af1b5249953202810540969026a.diff";
33 sha256 = "sha256-qHKQQNGSc3F9seaOHV0gzBQFFqcTXk91LpKrojjpAUw=";
38 substituteInPlace lib/src/install/installer.cpp --replace /usr "$out"
39 substituteInPlace app/resources/gnome-shell/mindforger.desktop --replace /usr "$out"
40 for f in app/app.pro lib/lib.pro; do
41 substituteInPlace "$f" --replace "QMAKE_CXX = g++" ""
52 postInstall = lib.optionalString stdenv.hostPlatform.isDarwin ''
53 mkdir "$out"/Applications
54 mv app/mindforger.app "$out"/Applications/
58 description = "Thinking Notebook & Markdown IDE";
60 MindForger is actually more than an editor or IDE - it's human
61 mind inspired personal knowledge management tool
63 homepage = "https://www.mindforger.com";
64 license = licenses.gpl2Plus;
65 platforms = platforms.all;
66 maintainers = with maintainers; [ cyplo ];
67 mainProgram = "mindforger";