1 { lib, fetchFromGitHub, cmake, curl, xorg, avahi, qtbase, mkDerivation,
2 openssl, wrapGAppsHook,
3 avahiWithLibdnssdCompat ? avahi.override { withLibdnssdCompat = true; },
11 src = fetchFromGitHub {
15 sha256 = "sha256-2tHqLF3zS3C4UnOVIZfpcuzaemC9++nC7lXgFnFSfKU=";
16 fetchSubmodules = true;
20 # This patch can be removed when a new version of barrier (greater than 2.4.0)
21 # is released, which will contain this commit.
23 name = "add-missing-cstddef-header.patch";
24 url = "https://github.com/debauchee/barrier/commit/4b12265ae5d324b942698a3177e1d8b1749414d7.patch";
25 sha256 = "sha256-ajMxP7szBFi4h8cMT3qswfa3k/QiJ1FGI3q9fkCFQQk=";
29 buildInputs = [ curl xorg.libX11 xorg.libXext xorg.libXtst avahiWithLibdnssdCompat qtbase ];
30 nativeBuildInputs = [ cmake wrapGAppsHook ];
33 substituteInPlace "$out/share/applications/barrier.desktop" --replace "Exec=barrier" "Exec=$out/bin/barrier"
37 ''--prefix PATH : ${lib.makeBinPath [ openssl ]}''
41 description = "Open-source KVM software";
43 Barrier is KVM software forked from Symless's synergy 1.9 codebase.
44 Synergy was a commercialized reimplementation of the original
45 CosmoSynergy written by Chris Schoeneman.
47 homepage = "https://github.com/debauchee/barrier";
48 downloadPage = "https://github.com/debauchee/barrier/releases";
49 license = lib.licenses.gpl2;
50 maintainers = [ lib.maintainers.phryneas ];
51 platforms = lib.platforms.linux;