urh: Only pull in qtwayland on Linux

This commit is contained in:
OPNA2608 2024-07-15 17:48:58 +02:00
parent a996966ed2
commit df47da1c38

View File

@ -1,4 +1,4 @@
{ lib, fetchFromGitHub, python3Packages
{ stdenv, lib, fetchFromGitHub, python3Packages
, hackrf, rtl-sdr, airspy, limesuite, libiio
, libbladeRF
, qt5
@ -16,8 +16,9 @@ python3Packages.buildPythonApplication rec {
};
nativeBuildInputs = [ qt5.wrapQtAppsHook ];
buildInputs = [ hackrf rtl-sdr airspy limesuite libiio libbladeRF qt5.qtwayland ]
++ lib.optional USRPSupport uhd;
buildInputs = [ hackrf rtl-sdr airspy limesuite libiio libbladeRF ]
++ lib.optional USRPSupport uhd
++ lib.optional stdenv.hostPlatform.isLinux qt5.qtwayland;
propagatedBuildInputs = with python3Packages; [
pyqt5 numpy psutil cython pyzmq pyaudio setuptools