about summary refs log tree commit diff
path: root/pkgs/applications/radio/uhd
diff options
context:
space:
mode:
authorTravis Whitaker <pi.boy.travis@gmail.com>2023-03-15 23:21:25 -0700
committerWeijia Wang <9713184+wegank@users.noreply.github.com>2023-03-16 15:36:16 +0200
commitb6bd2830cd570049f674bb58beea3c3b851ed229 (patch)
tree0c00f8391716e21d59387d037c5f2134b91ac8ec /pkgs/applications/radio/uhd
parentbd25ef79976cc14621cd06114467c751469c4f15 (diff)
gnuradio: fix on darwin-aarch64
Diffstat (limited to 'pkgs/applications/radio/uhd')
-rw-r--r--pkgs/applications/radio/uhd/default.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/applications/radio/uhd/default.nix b/pkgs/applications/radio/uhd/default.nix
index 812b9cf6a9bd7..b810af6e2ea6f 100644
--- a/pkgs/applications/radio/uhd/default.nix
+++ b/pkgs/applications/radio/uhd/default.nix
@@ -6,6 +6,7 @@
 , pkg-config
 # See https://files.ettus.com/manual_archive/v3.15.0.0/html/page_build_guide.html for dependencies explanations
 , boost
+, ncurses
 , enableCApi ? true
 # requires numpy
 , enablePythonApi ? false
@@ -105,6 +106,7 @@ stdenv.mkDerivation rec {
     # However, if enableLibuhd_Python_api *or* enableUtils is on, we need
     # pythonEnv for runtime as well. The utilities' runtime dependencies are
     # handled at the environment
+    ++ optionals (enableExamples) [ ncurses ncurses.dev ]
     ++ optionals (enablePythonApi || enableUtils) [ pythonEnv ]
     ++ optionals (enableDpdk) [ dpdk ]
   ;
@@ -124,7 +126,7 @@ stdenv.mkDerivation rec {
   ];
 
   postPhases = [ "installFirmware" "removeInstalledTests" ]
-    ++ optionals (enableUtils) [ "moveUdevRules" ]
+    ++ optionals (enableUtils && stdenv.targetPlatform.isLinux) [ "moveUdevRules" ]
   ;
 
   # UHD expects images in `$CMAKE_INSTALL_PREFIX/share/uhd/images`