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";
|
2022-10-21 18:38:19 +00:00
|
|
|
version = "1.1.2";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "xournalpp";
|
|
|
|
repo = pname;
|
2022-02-20 05:27:41 +00:00
|
|
|
rev = "v${version}";
|
2022-10-21 18:38:19 +00:00
|
|
|
sha256 = "sha256-E/7S4JGLXR8u9fE8bTVPFb6XVKOC/BHnQwLhr7N2A48=";
|
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
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
buildFlags = [ "translations" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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/";
|
2022-02-20 05:27:41 +00:00
|
|
|
changelog = "https://github.com/xournalpp/xournalpp/blob/v${version}/CHANGELOG.md";
|
2020-10-27 00:29:36 +00:00
|
|
|
license = licenses.gpl2Plus;
|
2020-04-24 23:36:52 +00:00
|
|
|
maintainers = with maintainers; [ andrew-d sikmir ];
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|