2020-12-12 12:44:57 +00:00
|
|
|
{ mkDerivation
|
|
|
|
, cmark-gfm
|
|
|
|
, fetchurl
|
|
|
|
, qmake
|
|
|
|
, qtbase
|
|
|
|
, qtwebkit
|
2021-01-25 08:26:54 +00:00
|
|
|
, lib
|
2020-12-12 12:44:57 +00:00
|
|
|
, wrapGAppsHook
|
|
|
|
}:
|
2018-11-18 14:41:11 +00:00
|
|
|
|
2020-04-07 21:30:49 +01:00
|
|
|
mkDerivation rec {
|
2019-08-15 13:41:18 +01:00
|
|
|
pname = "mindforger";
|
2020-12-12 12:44:57 +00:00
|
|
|
version = "1.52.0";
|
2018-11-18 14:41:11 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2020-12-12 12:44:57 +00:00
|
|
|
url = "https://github.com/dvorka/mindforger/releases/download/${version}/mindforger_${version}.tgz";
|
|
|
|
sha256 = "1pghsw8kwvjhg3jpmjs0n892h2l0pm0cs6ymi8b23fwk0kfj67rd";
|
2018-11-18 14:41:11 +00:00
|
|
|
};
|
|
|
|
|
2020-12-12 12:44:57 +00:00
|
|
|
nativeBuildInputs = [ qmake wrapGAppsHook ] ;
|
|
|
|
buildInputs = [ qtbase qtwebkit cmark-gfm ] ;
|
2018-11-18 14:41:11 +00:00
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
patches = [ ./build.patch ] ;
|
|
|
|
|
|
|
|
postPatch = ''
|
2020-12-12 12:44:57 +00:00
|
|
|
substituteInPlace lib/src/install/installer.cpp --replace /usr "$out"
|
2018-11-18 14:41:11 +00:00
|
|
|
substituteInPlace app/resources/gnome-shell/mindforger.desktop --replace /usr "$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
qmakeFlags = [ "-r mindforger.pro" "CONFIG+=mfnoccache" ] ;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-11-18 14:41:11 +00:00
|
|
|
description = "Thinking Notebook & Markdown IDE";
|
|
|
|
longDescription = ''
|
|
|
|
MindForger is actually more than an editor or IDE - it's human
|
|
|
|
mind inspired personal knowledge management tool
|
|
|
|
'';
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://www.mindforger.com";
|
2018-11-18 14:41:11 +00:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
platforms = platforms.all;
|
2020-12-12 12:44:57 +00:00
|
|
|
maintainers = with maintainers; [ cyplo ];
|
2018-11-18 14:41:11 +00:00
|
|
|
};
|
|
|
|
}
|