@@ -1,4 +1,5 @@
11{ stdenv, fetchFromGitHub, cmake, curl, xorg, avahi, qtbase, mkDerivation,
2+ openssl, wrapGAppsHook,
23 avahiWithLibdnssdCompat ? avahi.override { withLibdnssdCompat = true; }
34}:
45
@@ -13,12 +14,17 @@ mkDerivation rec {
1314 sha256 = "1gbg3p7c0vcsdzsjj1ssx6k8xpj3rpyvais12266f0xvnbvihczd";
1415 };
1516
16− buildInputs = [ cmake curl xorg.libX11 xorg.libXext xorg.libXtst avahiWithLibdnssdCompat qtbase ];
17+ buildInputs = [ curl xorg.libX11 xorg.libXext xorg.libXtst avahiWithLibdnssdCompat qtbase ];
18+ nativeBuildInputs = [ cmake wrapGAppsHook ];
1719
1820 postFixup = ''
1921 substituteInPlace "$out/share/applications/barrier.desktop" --replace "Exec=barrier" "Exec=$out/bin/barrier"
2022 '';
2123
24+ qtWrapperArgs = [
25+ ''--prefix PATH : ${stdenv.lib.makeBinPath [ openssl ]}''
26+ ];
27+
2228 meta = {
2329 description = "Open-source KVM software";
2430 longDescription = ''