From df47da1c3804a1dab9cbce3b9bce65d7f6c79801 Mon Sep 17 00:00:00 2001 From: OPNA2608 Date: Mon, 15 Jul 2024 17:48:58 +0200 Subject: [PATCH] urh: Only pull in qtwayland on Linux --- pkgs/applications/radio/urh/default.nix | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/pkgs/applications/radio/urh/default.nix b/pkgs/applications/radio/urh/default.nix index 5b843f3a2583..53f5cfa9c15c 100644 --- a/pkgs/applications/radio/urh/default.nix +++ b/pkgs/applications/radio/urh/default.nix @@ -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