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

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

52 lines
1.2 KiB
Nix
Raw Normal View History

{ lib
, stdenv
, fetchFromGitHub
, buildPythonApplication
, pem
, pyside6
, twisted
, certifi
, qt6
, appnope
, enableGUI ? true
}:
2017-12-12 08:59:33 +00:00
buildPythonApplication rec {
pname = "syncplay";
2024-05-14 20:54:11 +00:00
version = "1.7.3";
2017-12-12 08:59:33 +00:00
format = "other";
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 = [
./trusted_certificates.patch
2023-05-25 23:32:37 +00:00
];
buildInputs = lib.optionals enableGUI [ (if stdenv.hostPlatform.isLinux then qt6.qtwayland else qt6.qtbase) ];
propagatedBuildInputs = [ certifi pem twisted ]
++ twisted.optional-dependencies.tls
++ 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
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
2017-12-12 08:59:33 +00:00
postFixup = lib.optionalString enableGUI ''
2019-12-19 20:52:32 +00:00
wrapQtApp $out/bin/syncplay
'';
meta = with lib; {
homepage = "https://syncplay.pl/";
2017-12-12 08:59:33 +00:00
description = "Free software that synchronises media players";
license = licenses.asl20;
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
};
}