profanity: 0.17.0 -> 0.18.2 (#530564)

This commit is contained in:
Peder Bergebakken Sundt
2026-07-02 21:19:49 +00:00
committed by GitHub
3 changed files with 43 additions and 48 deletions
@@ -2,8 +2,8 @@
lib,
stdenv,
fetchFromGitHub,
autoconf-archive,
autoreconfHook,
meson,
ninja,
cmocka,
curl,
expat,
@@ -12,7 +12,6 @@
glibcLocales,
libstrophe,
libmicrohttpd,
libotr,
libuuid,
ncurses,
openssl,
@@ -35,41 +34,39 @@
python3,
traySupport ? true,
gtk3,
otrSupport ? true,
libotr,
avatarScalingSupport ? true,
spellcheckSupport ? true,
enchant,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "profanity";
version = "0.17.0";
version = "0.18.2";
src = fetchFromGitHub {
owner = "profanity-im";
repo = "profanity";
rev = finalAttrs.version;
hash = "sha256-fZFLEkbwiYeAtnqDOImV8aXbYGMqO9TEcXPFMuchJaE=";
hash = "sha256-rPiYzG5KvJyKt7b99AImmO6wTYxZPFcf/6Xhz8SrgIo=";
};
patches = [
./patches/packages-osx.patch
];
enableParallelBuilding = true;
nativeBuildInputs = [
autoconf-archive
autoreconfHook
glibcLocales
meson
pkg-config
ninja
];
buildInputs = [
cmocka
curl
expat
expect
glib
libstrophe
libmicrohttpd
libotr
libuuid
ncurses
openssl
@@ -91,22 +88,38 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optionals pgpSupport [ gpgme ]
++ lib.optionals pythonPluginSupport [ python3 ]
++ lib.optionals traySupport [ gtk3 ];
++ lib.optionals traySupport [ gtk3 ]
++ lib.optionals otrSupport [ libotr ]
++ lib.optionals spellcheckSupport [ enchant ]
++ lib.optionals avatarScalingSupport [ gdk-pixbuf ];
# Enable feature flags, so that build fail if libs are missing
configureFlags = [
"--enable-c-plugins"
"--enable-otr"
]
++ lib.optionals notifySupport [ "--enable-notifications" ]
++ lib.optionals traySupport [ "--enable-icons-and-clipboard" ]
++ lib.optionals pgpSupport [ "--enable-pgp" ]
++ lib.optionals pythonPluginSupport [ "--enable-python-plugins" ]
++ lib.optionals omemoSupport [ "--enable-omemo" ];
# see also: https://profanity-im.github.io/guide/latest/build.html#expl
mesonFlags = [
(lib.mesonBool "tests" finalAttrs.doCheck)
(lib.mesonEnable "notifications" notifySupport)
(lib.mesonEnable "python-plugins" pythonPluginSupport)
(lib.mesonEnable "c-plugins" true)
(lib.mesonEnable "otr" otrSupport)
(lib.mesonEnable "pgp" pgpSupport)
(lib.mesonEnable "omemo" omemoSupport)
(lib.mesonEnable "omemo-qrcode" omemoSupport)
(lib.mesonEnable "icons-and-clipboard" traySupport)
(lib.mesonEnable "gdk-pixbuf" avatarScalingSupport)
(lib.mesonEnable "xscreensaver" autoAwaySupport)
(lib.mesonEnable "spellcheck" spellcheckSupport)
];
# this build directory is hard coded by the tests:
# https://github.com/profanity-im/profanity/blob/c9033aae568d1a8f5435c566f31aa165718c7726/tests/functionaltests/proftest.c#L275
mesonBuildDir = "build_run";
doCheck = true;
nativeCheckInputs = [
cmocka
env.LC_ALL = "en_US.utf8";
# when stabber is found, functional tests are enabled which take a very long time
# stabber
];
meta = {
homepage = "https://profanity-im.github.io";
@@ -1,13 +0,0 @@
diff --git a/configure.ac b/configure.ac
index 5c00aca..eb78060 100644
--- a/configure.ac
+++ b/configure.ac
@@ -23,7 +23,6 @@ PLATFORM="unknown"
AS_CASE([$host_os],
[freebsd*], [PLATFORM="freebsd"],
[openbsd*], [PLATFORM="openbsd"],
- [darwin*], [PLATFORM="osx"],
[cygwin], [PLATFORM="cygwin"],
[PLATFORM="nix"])
+4 -9
View File
@@ -10,20 +10,15 @@
}:
stdenv.mkDerivation {
pname = "stabber-unstable";
version = "2020-06-08";
version = "2026-03-05";
src = fetchFromGitHub {
owner = "boothj5";
owner = "profanity-im";
repo = "stabber";
rev = "3e5c2200715666aad403d0076e8ab584b329965e";
sha256 = "0042nbgagl4gcxa5fj7bikjdi1gbk0jwyqnzc5lswpb0l5y0i1ql";
rev = "ba6ca0707833c70ab38681bcc28bfff025c491f1";
hash = "sha256-q3WfPjqD4AotdDukVMNg9Hz/Ns2PgBaoNk06sFm0E68=";
};
postPatch = ''
# New toolchainsd like gcc-13 trigger warnings and fail the build.
substituteInPlace configure.ac --replace "-Werror" ""
'';
preAutoreconf = ''
mkdir m4
'';