Merge pull request #168551 from infinisil/syncplay-no-gui
syncplay: Allow disabling GUI
This commit is contained in:
commit
4de6cbc904
@ -89,7 +89,7 @@ in
|
||||
${lib.optionalString (cfg.passwordFile != null) ''
|
||||
export SYNCPLAY_PASSWORD=$(cat "''${CREDENTIALS_DIRECTORY}/password")
|
||||
''}
|
||||
exec ${pkgs.syncplay}/bin/syncplay-server ${escapeShellArgs cmdArgs}
|
||||
exec ${pkgs.syncplay-nogui}/bin/syncplay-server ${escapeShellArgs cmdArgs}
|
||||
'';
|
||||
};
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
{ lib, fetchFromGitHub, buildPythonApplication, pyside2, shiboken2, twisted, certifi, qt5 }:
|
||||
{ lib, fetchFromGitHub, buildPythonApplication, pyside2, twisted, certifi, qt5, enableGUI ? true }:
|
||||
|
||||
buildPythonApplication rec {
|
||||
pname = "syncplay";
|
||||
@ -13,12 +13,14 @@ buildPythonApplication rec {
|
||||
sha256 = "0qm3qn4a1nahhs7q81liz514n9blsi107g9s9xfw2i8pzi7v9v0v";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ pyside2 shiboken2 twisted certifi ] ++ twisted.extras.tls;
|
||||
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
|
||||
propagatedBuildInputs = [ twisted certifi ]
|
||||
++ twisted.extras.tls
|
||||
++ lib.optional enableGUI pyside2;
|
||||
nativeBuildInputs = lib.optionals enableGUI [ qt5.wrapQtAppsHook ];
|
||||
|
||||
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
||||
|
||||
postFixup = ''
|
||||
postFixup = lib.optionalString enableGUI ''
|
||||
wrapQtApp $out/bin/syncplay
|
||||
'';
|
||||
|
||||
|
@ -29347,6 +29347,8 @@ with pkgs;
|
||||
|
||||
syncplay = python3.pkgs.callPackage ../applications/networking/syncplay { };
|
||||
|
||||
syncplay-nogui = syncplay.override { enableGUI = false; };
|
||||
|
||||
syncterm = callPackage ../applications/terminal-emulators/syncterm { };
|
||||
|
||||
inherit (callPackages ../applications/networking/syncthing { })
|
||||
|
Loading…
Reference in New Issue
Block a user