at master 59 lines 1.4 kB view raw
1{ 2 lib, 3 mkDerivation, 4 fetchFromGitHub, 5 boost, 6 qtbase, 7 qtwebkit, 8 poppler, 9 qmake, 10 hunspell, 11 html-tidy, 12}: 13 14mkDerivation rec { 15 pname = "nixnote2"; 16 version = "2.0.2"; 17 18 src = fetchFromGitHub { 19 owner = "baumgarr"; 20 repo = "nixnote2"; 21 rev = "v${version}"; 22 sha256 = "0cfq95mxvcgby66r61gclm1a2c6zck5aln04xmg2q8kg6p9d31fr"; 23 }; 24 25 buildInputs = [ 26 boost 27 qtbase 28 qtwebkit 29 poppler 30 hunspell 31 ]; 32 33 nativeBuildInputs = [ qmake ]; 34 35 postPatch = '' 36 # Fix location of poppler-qt5.h 37 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 38 substituteInPlace $f \ 39 --replace '#include <poppler-qt5.h>' '#include <poppler/qt5/poppler-qt5.h>' 40 done 41 42 substituteInPlace help/about.html --replace '__VERSION__' '${version}' 43 44 substituteInPlace nixnote.cpp --replace 'tidyProcess.start("tidy' 'tidyProcess.start("${html-tidy}/bin/tidy' 45 ''; 46 47 postInstall = '' 48 cp images/windowIcon.png $out/share/pixmaps/nixnote2.png 49 cp theme.ini $out/share/nixnote2/theme.ini 50 ''; 51 52 meta = with lib; { 53 description = "Unofficial client of Evernote"; 54 homepage = "http://www.nixnote.org/"; 55 license = licenses.gpl2Plus; 56 maintainers = with maintainers; [ htr ]; 57 platforms = platforms.linux; 58 }; 59}