3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/editors/mindforger/default.nix

46 lines
1.2 KiB
Nix
Raw Normal View History

2020-04-07 21:30:49 +01:00
{ mkDerivation, stdenv, fetchurl, qmake, qtbase, qtwebkit }:
2018-11-18 14:41:11 +00:00
2020-04-07 21:30:49 +01:00
mkDerivation rec {
pname = "mindforger";
2018-11-18 14:41:11 +00:00
version = "1.48.2";
src = fetchurl {
url = "https://github.com/dvorka/mindforger/releases/download/1.48.0/mindforger_${version}.tgz";
sha256 = "1wlrl8hpjcpnq098l3n2d1gbhbjylaj4z366zvssqvmafr72iyw4";
};
nativeBuildInputs = [ qmake ] ;
buildInputs = [ qtbase qtwebkit ] ;
doCheck = true;
enableParallelBuilding = true ;
patches = [ ./build.patch ] ;
postPatch = ''
substituteInPlace deps/discount/version.c.in --subst-var-by TABSTOP 4
substituteInPlace app/resources/gnome-shell/mindforger.desktop --replace /usr "$out"
'';
preConfigure = ''
export AC_PATH="$PATH"
pushd deps/discount
./configure.sh
popd
'';
qmakeFlags = [ "-r mindforger.pro" "CONFIG+=mfnoccache" ] ;
meta = with stdenv.lib; {
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;
};
}