syncplay: add TLS support

Also cleanup.
This commit is contained in:
Nikolay Amiantov 2019-06-10 11:49:36 +03:00
parent 338a6e3f38
commit eff932e22b
2 changed files with 10 additions and 8 deletions

View File

@ -1,21 +1,23 @@
{ stdenv, fetchurl, python3Packages }: { lib, fetchFromGitHub, buildPythonApplication, pyside, twisted, certifi }:
python3Packages.buildPythonApplication rec { buildPythonApplication rec {
name = "syncplay-${version}"; name = "syncplay-${version}";
version = "1.6.3"; version = "1.6.3";
format = "other"; format = "other";
src = fetchurl { src = fetchFromGitHub {
url = https://github.com/Syncplay/syncplay/archive/v1.6.3.tar.gz; owner = "Syncplay";
sha256 = "151p1njlp3dp3pfr3l3m6ia5829zvjyjh4p45j6rgnicbh8sqrgs"; repo = "syncplay";
rev = "v${version}";
sha256 = "03xw44lxdk1h9kbvfviqzpmxxld6zvp07i0hvdm1chchyp0a109h";
}; };
propagatedBuildInputs = with python3Packages; [ pyside twisted ]; propagatedBuildInputs = [ pyside twisted certifi ] ++ twisted.extras.tls;
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ]; makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
meta = with stdenv.lib; { meta = with lib; {
homepage = https://syncplay.pl/; homepage = https://syncplay.pl/;
description = "Free software that synchronises media players"; description = "Free software that synchronises media players";
license = licenses.asl20; license = licenses.asl20;

View File

@ -20281,7 +20281,7 @@ in
symlinks = callPackage ../tools/system/symlinks { }; symlinks = callPackage ../tools/system/symlinks { };
syncplay = callPackage ../applications/networking/syncplay { }; syncplay = python3.pkgs.callPackage ../applications/networking/syncplay { };
inherit (callPackages ../applications/networking/syncthing { }) inherit (callPackages ../applications/networking/syncthing { })
syncthing syncthing