nixos-config/xournalpp.nix

64 lines
1.2 KiB
Nix
Raw Normal View History

2021-07-11 15:02:12 +02:00
{ lib, stdenv
, fetchFromGitHub
, cmake
, ninja
, gettext
, wrapGAppsHook
, pkg-config
, glib
, gsettings-desktop-schemas
, gtk3
, libsndfile
, libxml2
, libzip
, pcre
, poppler
, portaudio
, zlib
, librsvg
# plugins
, withLua ? true, lua
}:
stdenv.mkDerivation rec {
pname = "xournalpp";
version = "2021-07-10";
src = fetchFromGitHub {
owner = "xournalpp";
repo = pname;
rev = "1a60605e7ccfe1d46162355825dd19f27d931db4";
sha256 = "sha256-l+V/MsqMYmsozUVIuHmYL60QVoH8ADXUR/SJOjh9LTQ=";
};
nativeBuildInputs = [ cmake ninja gettext pkg-config wrapGAppsHook ];
buildInputs =
[ glib
gsettings-desktop-schemas
gtk3
libsndfile
libxml2
libzip
pcre
poppler
portaudio
zlib
librsvg
]
++ lib.optional withLua lua;
buildFlags = "translations";
hardeningDisable = [ "format" ];
meta = with lib; {
description = "Xournal++ is a handwriting Notetaking software with PDF annotation support";
homepage = "https://xournalpp.github.io/";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ andrew-d sikmir ];
platforms = platforms.linux;
};
}