1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 17:25:11 +00:00
nixpkgs/pkgs/applications/editors/mindforger/default.nix

46 lines
1.1 KiB
Nix
Raw Normal View History

2020-12-12 12:44:57 +00:00
{ mkDerivation
, cmark-gfm
, fetchurl
, qmake
, qtbase
, qtwebkit
, 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 {
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" ] ;
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
'';
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
};
}