2021-01-25 09:26:54 +01:00
|
|
|
{ lib, mkDerivation, fetchFromGitHub, boost
|
2018-07-17 22:11:16 +02:00
|
|
|
, qtbase, qtwebkit, poppler, qmake, hunspell, html-tidy}:
|
2018-02-20 12:40:03 +01:00
|
|
|
|
|
|
|
mkDerivation rec {
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "nixnote2";
|
2018-02-20 12:40:03 +01:00
|
|
|
version = "2.0.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "baumgarr";
|
|
|
|
repo = "nixnote2";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "0cfq95mxvcgby66r61gclm1a2c6zck5aln04xmg2q8kg6p9d31fr";
|
|
|
|
};
|
|
|
|
|
2018-07-17 22:11:16 +02:00
|
|
|
buildInputs = [ boost qtbase qtwebkit poppler hunspell ];
|
2018-02-20 12:40:03 +01:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
|
|
|
nativeBuildInputs = [ qmake ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# Fix location of poppler-qt5.h
|
|
|
|
for f in threads/indexrunner.cpp html/noteformatter.cpp utilities/noteindexer.cpp gui/plugins/popplerviewer.h gui/plugins/pluginfactory.h gui/plugins/popplerviewer.cpp ; do
|
|
|
|
substituteInPlace $f \
|
|
|
|
--replace '#include <poppler-qt5.h>' '#include <poppler/qt5/poppler-qt5.h>'
|
|
|
|
done
|
|
|
|
|
2018-03-09 12:47:50 +01:00
|
|
|
substituteInPlace help/about.html --replace '__VERSION__' '${version}'
|
|
|
|
|
2018-02-20 12:40:03 +01:00
|
|
|
substituteInPlace nixnote.cpp --replace 'tidyProcess.start("tidy' 'tidyProcess.start("${html-tidy}/bin/tidy'
|
|
|
|
'';
|
2018-07-17 22:11:16 +02:00
|
|
|
|
2018-11-15 15:36:02 +01:00
|
|
|
postInstall = ''
|
2018-03-09 12:47:50 +01:00
|
|
|
cp images/windowIcon.png $out/share/pixmaps/nixnote2.png
|
2018-11-15 15:36:02 +01:00
|
|
|
cp theme.ini $out/share/nixnote2/theme.ini
|
2018-03-09 12:47:50 +01:00
|
|
|
'';
|
2018-02-20 12:40:03 +01:00
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-02-20 12:40:03 +01:00
|
|
|
description = "An unofficial client of Evernote";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "http://www.nixnote.org/";
|
2018-02-20 12:40:03 +01:00
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ htr ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|