nixpkgs/pkgs/applications/networking/syncplay/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
942 B
Nix
Raw Normal View History

{ lib, fetchFromGitHub, buildPythonApplication, pyside2, twisted, certifi, qt5, enableGUI ? true }:
2017-12-12 09:59:33 +01:00
buildPythonApplication rec {
pname = "syncplay";
2021-08-23 06:46:57 +02:00
version = "1.6.9";
2017-12-12 09:59:33 +01:00
format = "other";
src = fetchFromGitHub {
owner = "Syncplay";
repo = "syncplay";
rev = "v${version}";
2021-08-23 06:46:57 +02:00
sha256 = "0qm3qn4a1nahhs7q81liz514n9blsi107g9s9xfw2i8pzi7v9v0v";
2017-12-12 09:59:33 +01:00
};
propagatedBuildInputs = [ twisted certifi ]
++ twisted.optional-dependencies.tls
++ lib.optional enableGUI pyside2;
nativeBuildInputs = lib.optionals enableGUI [ qt5.wrapQtAppsHook ];
2017-12-12 09:59:33 +01:00
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
2017-12-12 09:59:33 +01:00
postFixup = lib.optionalString enableGUI ''
2019-12-19 21:52:32 +01:00
wrapQtApp $out/bin/syncplay
'';
meta = with lib; {
homepage = "https://syncplay.pl/";
2017-12-12 09:59:33 +01:00
description = "Free software that synchronises media players";
license = licenses.asl20;
platforms = platforms.linux;
2021-12-18 15:59:15 +01:00
maintainers = with maintainers; [ Enzime ];
2017-12-12 09:59:33 +01:00
};
}