nixpkgs/pkgs/applications/graphics/xournalpp/default.nix
Andrew Dunham ca9932abe5 maintainers: remove andrew-d as a maintainer
I am deeply saddened at the fact that I need to do this. I have no
interest in re-litigating everything that has happened over the past
weeks and months, but I want to make my position(s) extremely clear:

The thought of any of my work contributing to someone's death by drone
makes me feel physically ill.

Recent communications from senior members of the NixOS community have
made it clear that leadership is unaware or uninterested in the basics
of how to run and moderate a community in a way that is resilient to bad
actors. The recent post by @edolstra is tone-deaf and gives me no
confidence that the Nix/NixOS community is a place that I want to remain
involved in going forward. I am thus choosing to remove myself from such
a community.

I also hereby resign from the ACME team.

See also: #307033

Signed-off-by: Andrew Dunham <andrew@du.nham.ca>
2024-04-27 14:05:07 -04:00

76 lines
1.4 KiB
Nix

{ lib, stdenv
, fetchFromGitHub
, cmake
, gettext
, wrapGAppsHook
, pkg-config
, alsa-lib
, binutils
, glib
, gsettings-desktop-schemas
, gtk3
, gtksourceview4
, librsvg
, libsndfile
, libxml2
, libzip
, pcre
, poppler
, portaudio
, zlib
# plugins
, withLua ? true, lua
}:
stdenv.mkDerivation rec {
pname = "xournalpp";
version = "1.2.3";
src = fetchFromGitHub {
owner = "xournalpp";
repo = "xournalpp";
rev = "v${version}";
sha256 = "sha256-8UAAX/kixqiY9zEYs5eva0G2K2vlfnYd1yyVHMSfSeY=";
};
postPatch = ''
substituteInPlace src/util/Stacktrace.cpp \
--replace-fail "addr2line" "${binutils}/bin/addr2line"
'';
nativeBuildInputs = [ cmake gettext pkg-config wrapGAppsHook ];
buildInputs =
lib.optionals stdenv.isLinux [
alsa-lib
] ++ [
glib
gsettings-desktop-schemas
gtk3
gtksourceview4
librsvg
libsndfile
libxml2
libzip
pcre
poppler
portaudio
zlib
]
++ lib.optional withLua lua;
buildFlags = [ "translations" ];
meta = with lib; {
description = "Xournal++ is a handwriting Notetaking software with PDF annotation support";
homepage = "https://xournalpp.github.io/";
changelog = "https://github.com/xournalpp/xournalpp/blob/v${version}/CHANGELOG.md";
license = licenses.gpl2Plus;
maintainers = with maintainers; [ sikmir ];
platforms = platforms.unix;
mainProgram = "xournalpp";
};
}