12 avahiWithLibdnssdCompat ? avahi.override { withLibdnssdCompat = true; },
20 src = fetchFromGitHub {
24 hash = "sha256-2tHqLF3zS3C4UnOVIZfpcuzaemC9++nC7lXgFnFSfKU=";
25 fetchSubmodules = true;
29 # This patch can be removed when a new version of barrier (greater than 2.4.0)
30 # is released, which will contain this commit.
32 name = "add-missing-cstddef-header.patch";
33 url = "https://github.com/debauchee/barrier/commit/4b12265ae5d324b942698a3177e1d8b1749414d7.patch";
34 sha256 = "sha256-ajMxP7szBFi4h8cMT3qswfa3k/QiJ1FGI3q9fkCFQQk=";
39 # error: 'uint8_t' is not a member of 'std'; did you mean 'wint_t'?
48 avahiWithLibdnssdCompat
57 substituteInPlace "$out/share/applications/barrier.desktop" --replace "Exec=barrier" "Exec=$out/bin/barrier"
61 ''--prefix PATH : ${lib.makeBinPath [ openssl ]}''
65 description = "Open-source KVM software";
67 Barrier is KVM software forked from Symless's synergy 1.9 codebase.
68 Synergy was a commercialized reimplementation of the original
69 CosmoSynergy written by Chris Schoeneman.
71 homepage = "https://github.com/debauchee/barrier";
72 downloadPage = "https://github.com/debauchee/barrier/releases";
73 license = lib.licenses.gpl2;
74 maintainers = [ lib.maintainers.phryneas ];
75 platforms = lib.platforms.linux;
76 mainProgram = "barrier";