@@ -1,7 +1,6 @@
11{ stdenv
22, lib
33, fetchFromGitHub
4−, fetchpatch
54
65, cmake
76, gettext
@@ -14,39 +13,26 @@
1413, hicolor-icon-theme
1514, libsndfile
1615, libxml2
16+, libzip
1717, pcre
1818, poppler
1919, portaudio
2020, zlib
21−
22−# Plugins don't appear to be working in this version, so disable them by not
23−# building with Lua support by default. In a future version, try switching this
24−# to 'true' and seeing if the top-level Plugin menu appears.
25−, withLua ? false, lua
21+# plugins
22+, withLua ? true, lua
2623}:
2724
2825stdenv.mkDerivation rec {
2926 name = "xournalpp-${version}";
30− version = "1.0.8";
27+ version = "1.0.12";
3128
3229 src = fetchFromGitHub {
3330 owner = "xournalpp";
3431 repo = "xournalpp";
3532 rev = version;
36− sha256 = "01q84xjp9z1krna10gjj562km6i3wdq8cg7paxax1k6bh52ryvf6";
33+ sha256 = "0yg70hsx58s3wb5kzccivrqa7kvmdapygxmif1j64hddah2rqcn9";
3734 };
3835
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−
5036 nativeBuildInputs = [ cmake gettext pkgconfig wrapGAppsHook ];
5137 buildInputs =
5238 [ glib
@@ -55,6 +41,7 @@ stdenv.mkDerivation rec {
5541 hicolor-icon-theme
5642 libsndfile
5743 libxml2
44+ libzip
5845 pcre
5946 poppler
6047 portaudio
@@ -62,6 +49,8 @@ stdenv.mkDerivation rec {
6249 ]
6350 ++ lib.optional withLua lua;
6451
52+ hardeningDisable = [ "format" ];
53+
6554 enableParallelBuilding = true;
6655
6756 meta = with stdenv.lib; {