@@ -1,4 +1,4 @@
1−{ stdenv, fetchurl, cmake, curl, xorg, avahi, qt5,
1+{ stdenv, fetchpatch, fetchurl, cmake, curl, xorg, avahi, qt5,
22 avahiWithLibdnssdCompat ? avahi.override { withLibdnssdCompat = true; }
33}:
44
@@ -13,9 +13,18 @@ stdenv.mkDerivation rec {
1313 buildInputs = [ cmake curl xorg.libX11 xorg.libXext xorg.libXtst avahiWithLibdnssdCompat ];
1414 propagatedBuildInputs = with qt5; [ qtbase ];
1515
16+ patches = [
17+ # Fix compilation on Qt 5.11
18+ # Patch should be removed on next version bump from 2.1.1!
19+ (fetchpatch {
20+ url = "https://github.com/debauchee/barrier/commit/a956cad0da23f544b874888c6c3540dc7f8f22cf.patch";
21+ sha256 = "0x5045bdks1f9casp0v7svx9ml1gxhkhw5sqc7xk36h184m24a21";
22+ })
23+ ];
24+
1625 postFixup = ''
17− substituteInPlace "$out/share/applications/barrier.desktop" --replace "Exec=barrier" "Exec=$out/bin/barrier"
18− '';
26+ substituteInPlace "$out/share/applications/barrier.desktop" --replace "Exec=barrier" "Exec=$out/bin/barrier"
27+ '';
1928
2029 meta = {
2130 description = "Open-source KVM software";