mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-03 21:40:12 +00:00
59 lines
1.3 KiB
Nix
59 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
qt6,
|
|
enableGUI ? true,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication (finalAttrs: {
|
|
pname = "syncplay";
|
|
version = "1.7.6";
|
|
|
|
pyproject = false;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Syncplay";
|
|
repo = "syncplay";
|
|
tag = "v${finalAttrs.version}";
|
|
sha256 = "sha256-DXkigo3XzR9G0g1egte96LEynSHyfhW7PjVG8i2r8Lc=";
|
|
};
|
|
|
|
patches = [
|
|
./trusted_certificates.patch
|
|
];
|
|
|
|
buildInputs = lib.optionals enableGUI [
|
|
(if stdenv.hostPlatform.isLinux then qt6.qtwayland else qt6.qtbase)
|
|
];
|
|
dependencies =
|
|
with python3Packages;
|
|
[
|
|
certifi
|
|
pem
|
|
twisted
|
|
]
|
|
++ twisted.optional-dependencies.tls
|
|
++ lib.optional enableGUI pyside6
|
|
++ lib.optional (stdenv.hostPlatform.isDarwin && enableGUI) appnope;
|
|
nativeBuildInputs = lib.optionals enableGUI [ qt6.wrapQtAppsHook ];
|
|
|
|
makeFlags = [
|
|
"DESTDIR="
|
|
"PREFIX=$(out)"
|
|
];
|
|
|
|
postFixup = lib.optionalString enableGUI ''
|
|
wrapQtApp $out/bin/syncplay
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://syncplay.pl/";
|
|
description = "Free software that synchronises media players";
|
|
license = lib.licenses.asl20;
|
|
platforms = lib.platforms.linux ++ lib.platforms.darwin;
|
|
maintainers = with lib.maintainers; [ assistant ];
|
|
};
|
|
})
|