xournalpp: 1.2.2 → 1.2.3

This commit is contained in:
Nikolay Korotkiy 2024-03-02 14:51:19 +04:00 committed by Bjørn Forsman
parent 3f066570e6
commit ec30688223

View file

@ -7,6 +7,7 @@
, pkg-config , pkg-config
, alsa-lib , alsa-lib
, binutils
, glib , glib
, gsettings-desktop-schemas , gsettings-desktop-schemas
, gtk3 , gtk3
@ -25,16 +26,22 @@
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "xournalpp"; pname = "xournalpp";
version = "1.2.2"; version = "1.2.3";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "xournalpp"; owner = "xournalpp";
repo = pname; repo = "xournalpp";
rev = "v${version}"; rev = "v${version}";
sha256 = "sha256-6ND0Y+TzdN2rRI10cusgSK1sYMC55Wn5qFCHP4hsdes="; sha256 = "sha256-8UAAX/kixqiY9zEYs5eva0G2K2vlfnYd1yyVHMSfSeY=";
}; };
postPatch = ''
substituteInPlace src/util/Stacktrace.cpp \
--replace-fail "addr2line" "${binutils}/bin/addr2line"
'';
nativeBuildInputs = [ cmake gettext pkg-config wrapGAppsHook ]; nativeBuildInputs = [ cmake gettext pkg-config wrapGAppsHook ];
buildInputs = buildInputs =
lib.optionals stdenv.isLinux [ lib.optionals stdenv.isLinux [
alsa-lib alsa-lib
@ -56,8 +63,6 @@ stdenv.mkDerivation rec {
buildFlags = [ "translations" ]; buildFlags = [ "translations" ];
hardeningDisable = [ "format" ];
meta = with lib; { meta = with lib; {
description = "Xournal++ is a handwriting Notetaking software with PDF annotation support"; description = "Xournal++ is a handwriting Notetaking software with PDF annotation support";
homepage = "https://xournalpp.github.io/"; homepage = "https://xournalpp.github.io/";
@ -65,5 +70,6 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus; license = licenses.gpl2Plus;
maintainers = with maintainers; [ andrew-d sikmir ]; maintainers = with maintainers; [ andrew-d sikmir ];
platforms = platforms.unix; platforms = platforms.unix;
mainProgram = "xournalpp";
}; };
} }