profanity: switch from rev to tag, move variables out of top-level

Assisted-by: Gemini 3.1 Pro
This commit is contained in:
Guy Chronister
2026-07-25 07:50:46 -05:00
parent 03502b7d6a
commit 4587ac9da5
2 changed files with 16 additions and 12 deletions
@@ -2,6 +2,7 @@
lib,
stdenv,
fetchFromGitHub,
config,
meson,
ninja,
cmocka,
@@ -18,21 +19,28 @@
pkg-config,
readline,
sqlite,
autoAwaySupport ? true,
# Read from config.profanity, falling back to true
autoAwaySupport ? config.profanity.autoAwaySupport or true,
libxscrnsaver,
libx11,
notifySupport ? true,
notifySupport ? config.profanity.notifySupport or true,
libnotify,
gdk-pixbuf,
omemoSupport ? true,
omemoSupport ? config.profanity.omemoSupport or true,
libsignal-protocol-c,
libgcrypt,
qrencode,
pgpSupport ? true,
pgpSupport ? config.profanity.pgpSupport or true,
gpgme,
pythonPluginSupport ? true,
pythonPluginSupport ? config.profanity.pythonPluginSupport or true,
python3,
traySupport ? true,
traySupport ? config.profanity.traySupport or true,
gtk3,
otrSupport ? true,
libotr,
@@ -48,7 +56,7 @@ stdenv.mkDerivation (finalAttrs: {
src = fetchFromGitHub {
owner = "profanity-im";
repo = "profanity";
rev = finalAttrs.version;
tag = finalAttrs.version;
hash = "sha256-rPiYzG5KvJyKt7b99AImmO6wTYxZPFcf/6Xhz8SrgIo=";
};
+1 -5
View File
@@ -9207,11 +9207,7 @@ with pkgs;
# perhaps there are better apps for this task? It's how I had configured my previous system.
# And I don't want to rewrite all rules
profanity = callPackage ../applications/networking/instant-messengers/profanity (
{
}
// (config.profanity or { })
);
profanity = callPackage ../applications/networking/instant-messengers/profanity { };
puredata-with-plugins =
plugins: callPackage ../by-name/pu/puredata/wrapper.nix { inherit plugins; };