2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
|
|
|
|
, cmake
|
|
|
|
, gettext
|
|
|
|
, wrapGAppsHook
|
2020-12-25 13:55:36 +00:00
|
|
|
, pkg-config
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
, glib
|
|
|
|
, gsettings-desktop-schemas
|
|
|
|
, gtk3
|
|
|
|
, libsndfile
|
|
|
|
, libxml2
|
|
|
|
, libzip
|
|
|
|
, pcre
|
|
|
|
, poppler
|
|
|
|
, portaudio
|
|
|
|
, zlib
|
|
|
|
# plugins
|
|
|
|
, withLua ? true, lua
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xournalpp";
|
2020-12-25 13:55:36 +00:00
|
|
|
version = "1.0.20";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xournalpp";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-25 13:55:36 +00:00
|
|
|
sha256 = "1c7n03xm3m4lwcwxgplkn25i8c6s3i7rijbkcx86br1j4jadcs3k";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-12-25 13:55:36 +00:00
|
|
|
nativeBuildInputs = [ cmake gettext pkg-config wrapGAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
buildInputs =
|
|
|
|
[ glib
|
|
|
|
gsettings-desktop-schemas
|
|
|
|
gtk3
|
|
|
|
libsndfile
|
|
|
|
libxml2
|
|
|
|
libzip
|
|
|
|
pcre
|
|
|
|
poppler
|
|
|
|
portaudio
|
|
|
|
zlib
|
|
|
|
]
|
|
|
|
++ stdenv.lib.optional withLua lua;
|
|
|
|
|
|
|
|
buildFlags = "translations";
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Xournal++ is a handwriting Notetaking software with PDF annotation support";
|
2020-10-27 00:29:36 +00:00
|
|
|
homepage = "https://xournalpp.github.io/";
|
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ andrew-d sikmir ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|