2023-05-24 13:37:59 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonApplication
|
2023-07-15 17:15:38 +00:00
|
|
|
, pem
|
2023-05-24 13:37:59 +00:00
|
|
|
, pyside6
|
|
|
|
, twisted
|
|
|
|
, certifi
|
|
|
|
, qt6
|
|
|
|
, appnope
|
|
|
|
, enableGUI ? true
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "syncplay";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "1.7.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Syncplay";
|
|
|
|
repo = "syncplay";
|
2024-06-05 15:53:02 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-ipo027XyN4BpMkxzXznbnaufsaG/YkHxFJYo+XWzbyE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
patches = [
|
|
|
|
./trusted_certificates.patch
|
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
buildInputs = lib.optionals enableGUI [ (if stdenv.isLinux then qt6.qtwayland else qt6.qtbase) ];
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = [ certifi pem twisted ]
|
2022-06-16 17:23:12 +00:00
|
|
|
++ twisted.optional-dependencies.tls
|
2023-05-24 13:37:59 +00:00
|
|
|
++ lib.optional enableGUI pyside6
|
|
|
|
++ lib.optional (stdenv.isDarwin && enableGUI) appnope;
|
|
|
|
nativeBuildInputs = lib.optionals enableGUI [ qt6.wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postFixup = lib.optionalString enableGUI ''
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapQtApp $out/bin/syncplay
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://syncplay.pl/";
|
|
|
|
description = "Free software that synchronises media players";
|
|
|
|
license = licenses.asl20;
|
2023-05-24 13:37:59 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2024-05-15 15:35:15 +00:00
|
|
|
maintainers = with maintainers; [ assistant Enzime ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|