From b74a56e2acce8fe88a575287a20ac196d8d01938 Mon Sep 17 00:00:00 2001 From: kolaente Date: Mon, 23 Dec 2024 00:28:51 +0100 Subject: [PATCH] hyprland-qtutils: init at 0.1.1 --- pkgs/by-name/hy/hyprland-qtutils/package.nix | 49 ++++++++++++++++++++ 1 file changed, 49 insertions(+) create mode 100644 pkgs/by-name/hy/hyprland-qtutils/package.nix diff --git a/pkgs/by-name/hy/hyprland-qtutils/package.nix b/pkgs/by-name/hy/hyprland-qtutils/package.nix new file mode 100644 index 000000000000..e9a6d8d29e6a --- /dev/null +++ b/pkgs/by-name/hy/hyprland-qtutils/package.nix @@ -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; + }; +})