Skip to content

Commit

Permalink
nheko: add identicons support (#150487)
Browse files Browse the repository at this point in the history
  • Loading branch information
adamcstephens authored Dec 22, 2024
2 parents 26d8eb8 + c4cb9fc commit 4323f32
Show file tree
Hide file tree
Showing 3 changed files with 41 additions and 0 deletions.
1 change: 1 addition & 0 deletions pkgs/by-name/nh/nheko/package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ stdenv.mkDerivation rec {
qt6Packages.qtmultimedia
qt6Packages.qttools
qt6Packages.qtwayland
qt6Packages.qt-jdenticon
re2
spdlog
]
Expand Down
38 changes: 38 additions & 0 deletions pkgs/development/libraries/qt-jdenticon/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
lib,
stdenv,
fetchFromGitHub,
qmake,
qtbase,
}:

stdenv.mkDerivation (finalAttrs: {
pname = "qt-jdenticon";
version = "0.3.0";

src = fetchFromGitHub {
owner = "Nheko-Reborn";
repo = "qt-jdenticon";
rev = "v${finalAttrs.version}";
hash = "sha256-Q5M7+XkY+/IS45rcFLYPfbcvQm8LDk4S9gzKigCIM7s=";
};

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

dontWrapQtApps = true;

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

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

qtutilities = callPackage ../development/libraries/qtutilities { };

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

quazip = callPackage ../development/libraries/quazip { };

qscintilla = callPackage ../development/libraries/qscintilla { };
Expand Down

0 comments on commit 4323f32

Please sign in to comment.