2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv
|
2020-04-24 23:36:52 +00:00
|
|
|
, 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
|
2021-08-05 21:33:18 +00:00
|
|
|
, librsvg
|
2020-04-24 23:36:52 +00:00
|
|
|
, libsndfile
|
|
|
|
, libxml2
|
|
|
|
, libzip
|
|
|
|
, pcre
|
|
|
|
, poppler
|
|
|
|
, portaudio
|
|
|
|
, zlib
|
|
|
|
# plugins
|
|
|
|
, withLua ? true, lua
|
|
|
|
}:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "xournalpp";
|
2021-08-05 21:33:18 +00:00
|
|
|
version = "1.1.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xournalpp";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2021-08-05 21:33:18 +00:00
|
|
|
sha256 = "sha256-FIIpWgWvq1uo/lIQXpOkUTZ6YJPtOtxKF8VjXSgqrlE=";
|
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
|
2021-08-05 21:33:18 +00:00
|
|
|
librsvg
|
2020-04-24 23:36:52 +00:00
|
|
|
libsndfile
|
|
|
|
libxml2
|
|
|
|
libzip
|
|
|
|
pcre
|
|
|
|
poppler
|
|
|
|
portaudio
|
|
|
|
zlib
|
|
|
|
]
|
2021-01-17 00:15:33 +00:00
|
|
|
++ lib.optional withLua lua;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildFlags = "translations";
|
|
|
|
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|