2023-05-12 00:18:32 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchFromGitHub
|
|
|
|
, buildPythonApplication
|
2023-06-16 10:18:39 +00:00
|
|
|
, pem
|
2023-05-12 00:18:32 +00:00
|
|
|
, pyside6
|
|
|
|
, twisted
|
|
|
|
, certifi
|
|
|
|
, qt6
|
|
|
|
, appnope
|
|
|
|
, enableGUI ? true
|
|
|
|
}:
|
2017-12-12 08:59:33 +00:00
|
|
|
|
2019-06-10 08:49:36 +00:00
|
|
|
buildPythonApplication rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "syncplay";
|
2024-05-14 20:54:11 +00:00
|
|
|
version = "1.7.3";
|
2017-12-12 08:59:33 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
2019-06-10 08:49:36 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Syncplay";
|
|
|
|
repo = "syncplay";
|
2024-05-14 20:54:11 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
sha256 = "sha256-ipo027XyN4BpMkxzXznbnaufsaG/YkHxFJYo+XWzbyE=";
|
2017-12-12 08:59:33 +00:00
|
|
|
};
|
|
|
|
|
2023-05-25 23:32:37 +00:00
|
|
|
patches = [
|
2023-06-16 10:18:39 +00:00
|
|
|
./trusted_certificates.patch
|
2023-05-25 23:32:37 +00:00
|
|
|
];
|
|
|
|
|
2023-05-12 00:18:32 +00:00
|
|
|
buildInputs = lib.optionals enableGUI [ (if stdenv.hostPlatform.isLinux then qt6.qtwayland else qt6.qtbase) ];
|
2023-06-16 10:18:39 +00:00
|
|
|
propagatedBuildInputs = [ certifi pem twisted ]
|
2022-05-22 14:26:11 +00:00
|
|
|
++ twisted.optional-dependencies.tls
|
2023-05-12 00:18:32 +00:00
|
|
|
++ lib.optional enableGUI pyside6
|
|
|
|
++ lib.optional (stdenv.hostPlatform.isDarwin && enableGUI) appnope;
|
|
|
|
nativeBuildInputs = lib.optionals enableGUI [ qt6.wrapQtAppsHook ];
|
2017-12-12 08:59:33 +00:00
|
|
|
|
2018-07-09 11:00:49 +00:00
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
2017-12-12 08:59:33 +00:00
|
|
|
|
2022-04-13 21:43:51 +00:00
|
|
|
postFixup = lib.optionalString enableGUI ''
|
2019-12-19 20:52:32 +00:00
|
|
|
wrapQtApp $out/bin/syncplay
|
|
|
|
'';
|
|
|
|
|
2019-06-10 08:49:36 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://syncplay.pl/";
|
2017-12-12 08:59:33 +00:00
|
|
|
description = "Free software that synchronises media players";
|
|
|
|
license = licenses.asl20;
|
2023-05-12 00:18:32 +00:00
|
|
|
platforms = platforms.linux ++ platforms.darwin;
|
2024-07-09 04:21:18 +00:00
|
|
|
maintainers = with maintainers; [ assistant ];
|
2017-12-12 08:59:33 +00:00
|
|
|
};
|
|
|
|
}
|