Skip to content

Commit

Permalink
nheko: add identicons support
Browse files Browse the repository at this point in the history
Nheko has support for identicons. There is a checkbox in the settings of
nheko but it wasn’t clickable because the dependency (“qt-jdenticon”
plugin) was missing.

This change adds “qt-jdenticon” as a new package (Qt plugin) and as a
dependency for Nheko. This package is maintained by Nheko team.
  • Loading branch information
unclechu committed Dec 12, 2021
1 parent d648115 commit aa95e4f
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
, voipSupport ? true
, gst_all_1
, libnice
, qt-jdenticon
}:

mkDerivation rec {
Expand Down Expand Up @@ -64,6 +65,7 @@ mkDerivation rec {
coeurl
libevent
curl
qt-jdenticon
] ++ lib.optional stdenv.isDarwin qtmacextras
++ lib.optionals voipSupport (with gst_all_1; [
gstreamer
Expand Down
32 changes: 32 additions & 0 deletions pkgs/development/libraries/qt-jdenticon/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{ lib, fetchFromGitHub, mkDerivation, qmake, qtbase }:

mkDerivation rec {
pname = "qt-jdenticon";
version = "0.2.1";

src = fetchFromGitHub {
owner = "Nheko-Reborn";
repo = "qt-jdenticon";
rev = "v${version}";
sha256 = "1dk2cmz34pdn79k6lq6jlbvy0gfp0w2vv1w4f8c9xmgmf6brcxq1";
};

nativeBuildInputs = [ qmake ];
buildInputs = [ qtbase ];

dontWrapQtApps = true;

postPatch = ''
# Fix plugins dir
substituteInPlace QtIdenticon.pro \
--replace "\$\$[QT_INSTALL_PLUGINS]" "$out/$qtPluginPrefix"
'';

meta = with lib; {
description = "Qt plugin for generating highly recognizable identicons";
homepage = "https://github.com/Nheko-Reborn/qt-jdenticon";
license = licenses.mit;
platforms = platforms.all;
maintainers = with maintainers; [ unclechu ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28044,6 +28044,8 @@ with pkgs;

qxw = callPackage ../applications/editors/qxw {};

qt-jdenticon = libsForQt5.callPackage ../development/libraries/qt-jdenticon {};

rabbitvcs = callPackage ../applications/version-management/rabbitvcs {};

rakarrack = callPackage ../applications/audio/rakarrack {
Expand Down

0 comments on commit aa95e4f

Please sign in to comment.