Skip to content

Commit

Permalink
hyprland-qtutils: init at 0.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
kolaente committed Dec 22, 2024
1 parent bc07206 commit 99e5e17
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 0 deletions.
59 changes: 59 additions & 0 deletions pkgs/by-name/hy/hyprland-qtutils/package.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{
lib,
stdenv,
cmake,
pkg-config,
hyprutils,
pciutils,
qt6,
fetchFromGitHub,
aquamarine,
hyprlang,
hyprcursor,
hyprgraphics,
}: let
version = "0.1.1";
inherit (lib.sources) cleanSource cleanSourceWith;
inherit (lib.strings) hasSuffix makeBinPath;
in
stdenv.mkDerivation {
pname = "hyprland-qtutils";
inherit version;

src = fetchFromGitHub {
owner = "hyprwm";
repo = "hyprland-qtutils";
rev = "refs/tags/v${version}";
hash = "sha256-dj9dpVwpyTmUyVu4jtaIU39bHgVkoZjv6cgYfWyHc9E=";
};

nativeBuildInputs = [
cmake
pkg-config
qt6.wrapQtAppsHook
];

buildInputs = [
hyprutils
qt6.qtbase
qt6.qtsvg
qt6.qtwayland
aquamarine
hyprlang
hyprcursor
hyprgraphics
];

preFixup = ''
qtWrapperArgs+=(--prefix PATH : "${makeBinPath [pciutils]}")
'';

meta = {
description = "Hyprland QT/qml utility apps";
homepage = "https://github.com/hyprwm/hyprland-qtlibs";
license = lib.licenses.bsd3;
maintainers = [lib.maintainers.fufexan];
platforms = lib.platforms.linux;
};
}

2 changes: 2 additions & 0 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -18803,6 +18803,8 @@ with pkgs;
fltk = fltk13;
};

hyprlang-qtutils = callPackage ../by-name/hy/hyprland-qtutils/package.nix { };

cantata = callPackage ../by-name/ca/cantata/package.nix {
ffmpeg = ffmpeg_6;
};
Expand Down

0 comments on commit 99e5e17

Please sign in to comment.