nixnote2: init at 2.0.2

+40 -1
+37
pkgs/applications/misc/nixnote2/default.nix
··· 1 + { stdenv, mkDerivation, fetchFromGitHub, boost, qtbase, qtwebkit, poppler_qt5, qmake, hunspell, html-tidy}: 2 + 3 + mkDerivation rec { 4 + name = "nixnote2-${version}"; 5 + version = "2.0.2"; 6 + 7 + src = fetchFromGitHub { 8 + owner = "baumgarr"; 9 + repo = "nixnote2"; 10 + rev = "v${version}"; 11 + sha256 = "0cfq95mxvcgby66r61gclm1a2c6zck5aln04xmg2q8kg6p9d31fr"; 12 + }; 13 + 14 + buildInputs = [ boost qtbase qtwebkit poppler_qt5 hunspell ]; 15 + 16 + enableParallelBuilding = true; 17 + 18 + nativeBuildInputs = [ qmake ]; 19 + 20 + postPatch = '' 21 + # Fix location of poppler-qt5.h 22 + 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 23 + substituteInPlace $f \ 24 + --replace '#include <poppler-qt5.h>' '#include <poppler/qt5/poppler-qt5.h>' 25 + done 26 + 27 + substituteInPlace nixnote.cpp --replace 'tidyProcess.start("tidy' 'tidyProcess.start("${html-tidy}/bin/tidy' 28 + ''; 29 + 30 + meta = with stdenv.lib; { 31 + description = "An unofficial client of Evernote"; 32 + homepage = http://www.nixnote.org/; 33 + license = licenses.gpl2Plus; 34 + maintainers = with maintainers; [ htr ]; 35 + platforms = platforms.linux; 36 + }; 37 + }
+3 -1
pkgs/top-level/all-packages.nix
··· 3236 3236 3237 3237 ninka = callPackage ../development/tools/misc/ninka { }; 3238 3238 3239 + nixnote2 = libsForQt5.callPackage ../applications/misc/nixnote2 { }; 3240 + 3239 3241 nodejs = hiPrio nodejs-6_x; 3240 3242 3241 3243 nodejs-slim = nodejs-slim-6_x; ··· 5755 5757 compcert = callPackage ../development/compilers/compcert { }; 5756 5758 5757 5759 cpp-gsl = callPackage ../development/libraries/cpp-gsl { }; 5758 - 5760 + 5759 5761 # Users installing via `nix-env` will likely be using the REPL, 5760 5762 # which has a hard dependency on Z3, so make sure it is available. 5761 5763 cryptol = haskellPackages.cryptol.overrideDerivation (oldAttrs: {