feat: add hyprland-qtutils

This commit is contained in:
Youwen Wu 2024-12-26 00:42:00 -08:00
parent d0c22732fe
commit 512b0e3aa1
Signed by: youwen5
GPG key ID: 865658ED1FE61EC3
3 changed files with 51 additions and 0 deletions

View file

@ -49,6 +49,7 @@ in
libsForQt5.qt5ct
papirus-icon-theme
libsForQt5.qt5ct
hyprland-qtutils
]
++ (lib.optionals (!osConfig.liminalOS.theming.enable) [
pkgs.bibata-cursors

View file

@ -0,0 +1,49 @@
{
lib,
gcc14Stdenv,
fetchFromGitHub,
cmake,
pkg-config,
hyprutils,
pciutils,
qt6,
}:
let
inherit (lib.strings) makeBinPath;
in
gcc14Stdenv.mkDerivation (finalAttrs: {
pname = "hyprland-qtutils";
version = "0.1.1";
src = fetchFromGitHub {
owner = "hyprwm";
repo = "hyprland-qtutils";
tag = "v${finalAttrs.version}";
hash = "sha256-Zp2cQOo1D7WH7ml5nV7mLyto0l19gTaWnbDb6zty1Qs=";
};
nativeBuildInputs = [
cmake
pkg-config
qt6.wrapQtAppsHook
];
buildInputs = [
hyprutils
qt6.qtbase
qt6.qtsvg
qt6.qtwayland
];
preFixup = ''
qtWrapperArgs+=(--prefix PATH : "${makeBinPath [ pciutils ]}")
'';
meta = {
description = "Hyprland QT/qml utility apps";
homepage = "https://github.com/hyprwm/hyprland-qtutils";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.fufexan ];
platforms = lib.platforms.linux;
};
})

View file

@ -4,4 +4,5 @@ let
in
final: prev: {
modrinth-app = callPackage ./by-name/modrinth-app { };
hyprland-qtutils = callPackage ./by-name/hyprland-qtutils { };
}