syncplay: fix TypeError on Linux

This commit is contained in:
Michael Hoang 2023-05-26 09:32:37 +10:00
parent f91ee3065d
commit 0aa72aa8c2

View file

@ -2,6 +2,7 @@
, stdenv
, fetchFromGitHub
, buildPythonApplication
, fetchpatch
, pyside6
, twisted
, certifi
@ -23,6 +24,14 @@ buildPythonApplication rec {
sha256 = "sha256-Te81yOv3D6M6aMfC5XrM6/I6BlMdlY1yRk1RRJa9Mxg=";
};
patches = [
(fetchpatch {
name = "fix-typeerror.patch";
url = "https://github.com/Syncplay/syncplay/commit/b62b038cdf58c54205987dfc52ebf228505ad03b.patch";
hash = "sha256-pSP33Qn1I+nJBW8T1E1tSJKRh5OnZMRsbU+jr5z4u7c=";
})
];
buildInputs = lib.optionals enableGUI [ (if stdenv.isLinux then qt6.qtwayland else qt6.qtbase) ];
propagatedBuildInputs = [ twisted certifi ]
++ twisted.optional-dependencies.tls