hyprland: 0.32.3 -> 0.33.1

authored by Mihai Fufezan and committed by Jörg Thalheim 18ee0842 5027eafc

+11 -54
+6 -5
pkgs/applications/window-managers/hyprwm/hyprland/default.nix
··· 28 , xcbutilwm 29 , xwayland 30 , debug ? false 31 - , enableNvidiaPatches ? false 32 , enableXWayland ? true 33 , legacyRenderer ? false 34 , withSystemd ? true ··· 36 # deprecated flags 37 , nvidiaPatches ? false 38 , hidpiXWayland ? false 39 }: 40 - assert lib.assertMsg (!nvidiaPatches) "The option `nvidiaPatches` has been renamed `enableNvidiaPatches`"; 41 assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland"; 42 stdenv.mkDerivation (finalAttrs: { 43 pname = "hyprland" + lib.optionalString debug "-debug"; 44 - version = "0.32.3"; 45 46 src = fetchFromGitHub { 47 owner = "hyprwm"; 48 repo = finalAttrs.pname; 49 rev = "v${finalAttrs.version}"; 50 - hash = "sha256-8PP26+ybmScq5WpFd2JPqUDzG2VggYOvD6/rzY9/CJ4="; 51 }; 52 53 patches = [ ··· 99 wayland-protocols 100 pango 101 pciutils 102 - (wlroots.override { inherit enableNvidiaPatches; }) 103 ] 104 ++ lib.optionals stdenv.hostPlatform.isMusl [ libexecinfo ] 105 ++ lib.optionals enableXWayland [ libxcb xcbutilwm xwayland ]
··· 28 , xcbutilwm 29 , xwayland 30 , debug ? false 31 , enableXWayland ? true 32 , legacyRenderer ? false 33 , withSystemd ? true ··· 35 # deprecated flags 36 , nvidiaPatches ? false 37 , hidpiXWayland ? false 38 + , enableNvidiaPatches ? false 39 }: 40 + assert lib.assertMsg (!nvidiaPatches) "The option `nvidiaPatches` has been removed."; 41 + assert lib.assertMsg (!enableNvidiaPatches) "The option `enableNvidiaPatches` has been removed."; 42 assert lib.assertMsg (!hidpiXWayland) "The option `hidpiXWayland` has been removed. Please refer https://wiki.hyprland.org/Configuring/XWayland"; 43 stdenv.mkDerivation (finalAttrs: { 44 pname = "hyprland" + lib.optionalString debug "-debug"; 45 + version = "0.33.1"; 46 47 src = fetchFromGitHub { 48 owner = "hyprwm"; 49 repo = finalAttrs.pname; 50 rev = "v${finalAttrs.version}"; 51 + hash = "sha256-p7el5oQZPy9l1zyIrlHu6nA4BAu59eLoSqBjhkw2jaw="; 52 }; 53 54 patches = [ ··· 100 wayland-protocols 101 pango 102 pciutils 103 + wlroots 104 ] 105 ++ lib.optionals stdenv.hostPlatform.isMusl [ libexecinfo ] 106 ++ lib.optionals enableXWayland [ libxcb xcbutilwm xwayland ]
+5 -49
pkgs/applications/window-managers/hyprwm/hyprland/wlroots.nix
··· 1 { fetchFromGitLab 2 - , hyprland 3 , wlroots 4 - , lib 5 , libdisplay-info 6 , libliftoff 7 , hwdata 8 - , enableNvidiaPatches ? false 9 }: 10 - let 11 - libdisplay-info-new = libdisplay-info.overrideAttrs (old: { 12 - version = "0.1.1+date=2023-03-02"; 13 - src = fetchFromGitLab { 14 - domain = "gitlab.freedesktop.org"; 15 - owner = "emersion"; 16 - repo = old.pname; 17 - rev = "147d6611a64a6ab04611b923e30efacaca6fc678"; 18 - sha256 = "sha256-/q79o13Zvu7x02SBGu0W5yQznQ+p7ltZ9L6cMW5t/o4="; 19 - }; 20 - }); 21 - 22 - libliftoff-new = libliftoff.overrideAttrs (old: { 23 - version = "0.5.0-dev"; 24 - src = fetchFromGitLab { 25 - domain = "gitlab.freedesktop.org"; 26 - owner = "emersion"; 27 - repo = old.pname; 28 - rev = "d98ae243280074b0ba44bff92215ae8d785658c0"; 29 - sha256 = "sha256-DjwlS8rXE7srs7A8+tHqXyUsFGtucYSeq6X0T/pVOc8="; 30 - }; 31 - 32 - NIX_CFLAGS_COMPILE = toString [ 33 - "-Wno-error=sign-conversion" 34 - ]; 35 - }); 36 - in 37 wlroots.overrideAttrs 38 (old: { 39 version = "0.17.0-dev"; ··· 42 domain = "gitlab.freedesktop.org"; 43 owner = "wlroots"; 44 repo = "wlroots"; 45 - rev = "5de9e1a99d6642c2d09d589aa37ff0a8945dcee1"; 46 - hash = "sha256-HXu98PyBMKEWLqiTb8viuLDznud/SdkdJsx5A5CWx7I="; 47 }; 48 49 - pname = 50 - old.pname 51 - + "-hyprland" 52 - + lib.optionalString enableNvidiaPatches "-nvidia"; 53 - 54 - patches = 55 - (old.patches or [ ]) 56 - ++ (lib.optionals enableNvidiaPatches [ 57 - "${hyprland.src}/nix/patches/wlroots-nvidia.patch" 58 - ]); 59 - 60 - # don't need old.postPatch for hwdata's path in wlroots 0.16 61 - postPatch = lib.optionalString enableNvidiaPatches '' 62 - substituteInPlace render/gles2/renderer.c --replace "glFlush();" "glFinish();" 63 - ''; 64 65 buildInputs = old.buildInputs ++ [ 66 hwdata 67 - libdisplay-info-new 68 - libliftoff-new 69 ]; 70 })
··· 1 { fetchFromGitLab 2 , wlroots 3 , libdisplay-info 4 , libliftoff 5 , hwdata 6 }: 7 wlroots.overrideAttrs 8 (old: { 9 version = "0.17.0-dev"; ··· 12 domain = "gitlab.freedesktop.org"; 13 owner = "wlroots"; 14 repo = "wlroots"; 15 + rev = "5d639394f3e83b01596dcd166a44a9a1a2583350"; 16 + hash = "sha256-7kvyoA91etzVEl9mkA/EJfB6z/PltxX7Xc4gcr7/xlo="; 17 }; 18 19 + pname = "${old.pname}-hyprland"; 20 21 buildInputs = old.buildInputs ++ [ 22 hwdata 23 + libdisplay-info 24 + libliftoff 25 ]; 26 })