Remove n0emis as direct maintainer (#365023)
[NixPkgs.git] / pkgs / applications / misc / nixnote2 / default.nix
blob9014f2f32344c18494cb7619e0ddb6bc6f18f9ed
2   lib,
3   mkDerivation,
4   fetchFromGitHub,
5   boost,
6   qtbase,
7   qtwebkit,
8   poppler,
9   qmake,
10   hunspell,
11   html-tidy,
14 mkDerivation rec {
15   pname = "nixnote2";
16   version = "2.0.2";
18   src = fetchFromGitHub {
19     owner = "baumgarr";
20     repo = "nixnote2";
21     rev = "v${version}";
22     sha256 = "0cfq95mxvcgby66r61gclm1a2c6zck5aln04xmg2q8kg6p9d31fr";
23   };
25   buildInputs = [
26     boost
27     qtbase
28     qtwebkit
29     poppler
30     hunspell
31   ];
33   nativeBuildInputs = [ qmake ];
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
42     substituteInPlace help/about.html --replace '__VERSION__' '${version}'
44     substituteInPlace nixnote.cpp --replace 'tidyProcess.start("tidy' 'tidyProcess.start("${html-tidy}/bin/tidy'
45   '';
47   postInstall = ''
48     cp images/windowIcon.png $out/share/pixmaps/nixnote2.png
49     cp theme.ini $out/share/nixnote2/theme.ini
50   '';
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   };