Unverified Commit 5abcdf74 authored by André Silva's avatar André Silva
Browse files

hyprland: add patch to fix plugins compilation

parent b6222779
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
@@ -3,6 +3,7 @@
  stdenv,
  stdenvAdapters,
  fetchFromGitHub,
  fetchpatch,
  pkg-config,
  makeWrapper,
  cmake,
@@ -101,6 +102,14 @@ customStdenv.mkDerivation (finalAttrs: {
    hash = "sha256-5jYD01l95U/HTfZMAccAvhSnrWgHIRWEjLi9R4wPIVI=";
  };

  patches = [
    # NOTE: this is required to make plugins compile. should be removed with the next release.
    (fetchpatch {
      url = "https://github.com/hyprwm/Hyprland/commit/522edc87126a48f3ce4891747b6a92a22385b1e7.patch";
      hash = "sha256-0BAlAVW5isa8gd833PjZdqO/uEpDqdTlu0iZbLP4U9s=";
    })
  ];

  postPatch = ''
    # Fix hardcoded paths to /usr installation
    sed -i "s#/usr#$out#" src/render/OpenGL.cpp