diff options
author | Doron Behar <doron.behar@gmail.com> | 2023-10-07 13:13:21 +0300 |
---|---|---|
committer | Doron Behar <doron.behar@gmail.com> | 2023-10-07 13:26:20 +0300 |
commit | 2c9957e42f2e451612119a1b03216578d639e754 (patch) | |
tree | ac60c2ee33410aa6e32c9466dff00d4a19c4f646 /pkgs/applications/radio/uhd | |
parent | bae9a9cc4edf47c6397734087bc3705c844f5155 (diff) |
uhd: build with utils by default
Build the uhd package with utils enabled by default, and disallow it to retain python references if these features are disabled. Add a new package uhdMinimal which does not build with these features. Modify the gnuradio{,3_{8,9}}Minimal packages so that they use the uhd package without python references.
Diffstat (limited to 'pkgs/applications/radio/uhd')
-rw-r--r-- | pkgs/applications/radio/uhd/default.nix | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/applications/radio/uhd/default.nix b/pkgs/applications/radio/uhd/default.nix index e85000d4f9d2f..5dbed65484de3 100644 --- a/pkgs/applications/radio/uhd/default.nix +++ b/pkgs/applications/radio/uhd/default.nix @@ -18,7 +18,7 @@ , python3 , buildPackages , enableExamples ? false -, enableUtils ? false +, enableUtils ? true , libusb1 # Disable dpdk for now due to compilation issues. , enableDpdk ? false @@ -150,6 +150,10 @@ stdenv.mkDerivation (finalAttrs: { mv $out/lib/uhd/utils/uhd-usrp.rules $out/lib/udev/rules.d/ ''; + disallowedReferences = optionals (!enablePythonApi && !enableUtils) [ + python3 + ]; + meta = with lib; { description = "USRP Hardware Driver (for Software Defined Radio)"; longDescription = '' |