From ed4f15376aa9d7692741ab58ce9e6aa2bb01fd77 Mon Sep 17 00:00:00 2001 From: John Titor <50095635+JohnRTitor@users.noreply.github.com> Date: Sun, 22 Sep 2024 21:52:27 +0530 Subject: [PATCH] xdg-desktop-portal-hyprland: 1.3.3 -> 1.3.5 --- .../xdg-desktop-portal-hyprland/default.nix | 50 ++++++------------- 1 file changed, 14 insertions(+), 36 deletions(-) diff --git a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix index ff917162dc3a..47b131ba6180 100644 --- a/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix +++ b/pkgs/applications/window-managers/hyprwm/xdg-desktop-portal-hyprland/default.nix @@ -2,15 +2,16 @@ lib, stdenv, fetchFromGitHub, - fetchpatch, cmake, - pkg-config, - wayland-scanner, makeWrapper, + pkg-config, wrapQtAppsHook, nix-update-script, + hyprland, hyprland-protocols, hyprlang, + hyprutils, + hyprwayland-scanner, libdrm, mesa, pipewire, @@ -18,58 +19,39 @@ qttools, qtwayland, sdbus-cpp, + slurp, systemd, wayland, wayland-protocols, - hyprland, - hyprpicker, - slurp, + wayland-scanner, }: stdenv.mkDerivation (finalAttrs: { pname = "xdg-desktop-portal-hyprland"; - version = "1.3.3"; + version = "1.3.5"; src = fetchFromGitHub { owner = "hyprwm"; repo = "xdg-desktop-portal-hyprland"; - rev = "v${finalAttrs.version}"; - hash = "sha256-cyyxu/oj4QEFp3CVx2WeXa9T4OAUyynuBJHGkBZSxJI="; + rev = "refs/tags/v${finalAttrs.version}"; + hash = "sha256-xTqnMoJsEojuvqJLuM+U7EZ7q71efaj3pbvjutq4TXc="; }; - patches = [ - # CMake formatting, required for the next two commits to cleanly apply - (fetchpatch { - url = "https://github.com/hyprwm/xdg-desktop-portal-hyprland/commit/5555f467f68ce7cdf1060991c24263073b95e9da.patch"; - hash = "sha256-yNkg7GCXDPJdsE7M6J98YylnRxQWpcM5N3olix7Oc1A="; - }) - # removes wayland-scanner from deps, as it includes a pkg-config that - # defines that it has a non-existent include directory which trips up CMake - (fetchpatch { - url = "https://github.com/hyprwm/xdg-desktop-portal-hyprland/commit/0dd9af698b9386bcf25d3ea9f5017eca721831c1.patch"; - hash = "sha256-Y6eWASHoMXVN2rYJ1rs0jy2qP81/qbHsZU+6b7XNBBg="; - }) - # handle finding wayland-scanner more nicely - (fetchpatch { - url = "https://github.com/hyprwm/xdg-desktop-portal-hyprland/commit/2425e8f541525fa7409d9f26a8ffaf92a3767251.patch"; - hash = "sha256-6dCg/U/SIjtvo07Z3tn0Hn8Xwx72nwVz6Q2cFnObonU="; - }) - ]; - depsBuildBuild = [ pkg-config ]; nativeBuildInputs = [ cmake - pkg-config - wayland-scanner makeWrapper + pkg-config wrapQtAppsHook + hyprwayland-scanner ]; buildInputs = [ hyprland-protocols hyprlang + hyprutils libdrm mesa pipewire @@ -80,6 +62,7 @@ stdenv.mkDerivation (finalAttrs: { systemd wayland wayland-protocols + wayland-scanner ]; dontWrapQtApps = true; @@ -95,12 +78,7 @@ stdenv.mkDerivation (finalAttrs: { } wrapProgramShell $out/libexec/xdg-desktop-portal-hyprland \ - --prefix PATH ":" ${ - lib.makeBinPath [ - (placeholder "out") - hyprpicker - ] - } + --prefix PATH ":" ${lib.makeBinPath [ (placeholder "out") ]} ''; passthru = {