mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
36 lines
1001 B
Nix
36 lines
1001 B
Nix
{ lib, fetchFromGitHub, buildPythonApplication, pyside2, twisted, certifi, qt5, enableGUI ? true }:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "syncplay";
|
|
version = "1.6.9";
|
|
|
|
format = "other";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Syncplay";
|
|
repo = "syncplay";
|
|
rev = "v${version}";
|
|
sha256 = "0qm3qn4a1nahhs7q81liz514n9blsi107g9s9xfw2i8pzi7v9v0v";
|
|
};
|
|
|
|
buildInputs = lib.optionals enableGUI [ qt5.qtwayland ];
|
|
propagatedBuildInputs = [ twisted certifi ]
|
|
++ twisted.optional-dependencies.tls
|
|
++ lib.optional enableGUI pyside2;
|
|
nativeBuildInputs = lib.optionals enableGUI [ qt5.wrapQtAppsHook ];
|
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
|
|
|
postFixup = lib.optionalString enableGUI ''
|
|
wrapQtApp $out/bin/syncplay
|
|
'';
|
|
|
|
meta = with lib; {
|
|
homepage = "https://syncplay.pl/";
|
|
description = "Free software that synchronises media players";
|
|
license = licenses.asl20;
|
|
platforms = platforms.linux;
|
|
maintainers = with maintainers; [ Enzime ];
|
|
};
|
|
}
|