@@ -1,7 +1,6 @@
11{ stdenv
22, lib
33, fetchFromGitHub
4−, fetchpatch
54
65, cmake
76, gettext
@@ -14,6 +13,7 @@
1413, hicolor-icon-theme
1514, libsndfile
1615, libxml2
16+, libzip
1717, pcre
1818, poppler
1919, portaudio
@@ -22,31 +22,20 @@
2222# Plugins don't appear to be working in this version, so disable them by not
2323# building with Lua support by default. In a future version, try switching this
2424# to 'true' and seeing if the top-level Plugin menu appears.
25−, withLua ? false, lua
25+, withLua ? true, lua
2626}:
2727
2828stdenv.mkDerivation rec {
2929 name = "xournalpp-${version}";
30− version = "1.0.8";
30+ version = "1.0.12";
3131
3232 src = fetchFromGitHub {
3333 owner = "xournalpp";
3434 repo = "xournalpp";
3535 rev = version;
36− sha256 = "01q84xjp9z1krna10gjj562km6i3wdq8cg7paxax1k6bh52ryvf6";
36+ sha256 = "0yg70hsx58s3wb5kzccivrqa7kvmdapygxmif1j64hddah2rqcn9";
3737 };
3838
39− patches = [
40− # This patch removes the unused 'xopp-recording.sh' file which breaks the
41− # cmake build; this patch isn't in a release yet, and should be removed at
42− # or after 1.0.9 is released.
43− (fetchpatch {
44− name = "remove-xopp-recording.sh.patch";
45− url = "https://github.com/xournalpp/xournalpp/commit/a17a3f2c80c607a22d0fdeb66d38358bea7e4d85.patch";
46− sha256 = "10pcpvklm6kr0lv2xrsbpg2037ni9j6dmxgjf56p466l3gz60iwy";
47− })
48− ];
49−
5039 nativeBuildInputs = [ cmake gettext pkgconfig wrapGAppsHook ];
5140 buildInputs =
5241 [ glib
@@ -55,6 +44,7 @@ stdenv.mkDerivation rec {
5544 hicolor-icon-theme
5645 libsndfile
5746 libxml2
47+ libzip
5848 pcre
5949 poppler
6050 portaudio
@@ -62,6 +52,8 @@ stdenv.mkDerivation rec {
6252 ]
6353 ++ lib.optional withLua lua;
6454
55+ hardeningDisable = [ "format" ];
56+
6557 enableParallelBuilding = true;
6658
6759 meta = with stdenv.lib; {