summary refs log tree commit diff
path: root/pkgs/applications/radio
diff options
context:
space:
mode:
authorThibaut Marty <github@thibautmarty.fr>2019-08-01 18:56:06 +0200
committerThibaut Marty <github@thibautmarty.fr>2019-08-03 22:57:47 +0200
commit1f0253997cd54b2a399584878204316c87e211ea (patch)
tree08ee7928cf4d83800aef9d5c6fff4b7755a98c9b /pkgs/applications/radio
parent7a7cf6faf05faa7751d4ba0b4f0869600ab7e2b3 (diff)
downloadnixpkgs-1f0253997cd54b2a399584878204316c87e211ea.tar
nixpkgs-1f0253997cd54b2a399584878204316c87e211ea.tar.gz
nixpkgs-1f0253997cd54b2a399584878204316c87e211ea.tar.bz2
nixpkgs-1f0253997cd54b2a399584878204316c87e211ea.tar.lz
nixpkgs-1f0253997cd54b2a399584878204316c87e211ea.tar.xz
nixpkgs-1f0253997cd54b2a399584878204316c87e211ea.tar.zst
nixpkgs-1f0253997cd54b2a399584878204316c87e211ea.zip
urh: add support for Pluto, soundcards, and optionally USRP
Diffstat (limited to 'pkgs/applications/radio')
-rw-r--r--pkgs/applications/radio/urh/default.nix13
1 files changed, 8 insertions, 5 deletions
diff --git a/pkgs/applications/radio/urh/default.nix b/pkgs/applications/radio/urh/default.nix
index 48c20ecca47..a1b92e7e4e1 100644
--- a/pkgs/applications/radio/urh/default.nix
+++ b/pkgs/applications/radio/urh/default.nix
@@ -1,5 +1,6 @@
-{ stdenv, fetchFromGitHub, python3Packages
-, hackrf, rtl-sdr, airspy, limesuite }:
+{ stdenv, lib, fetchFromGitHub, python3Packages
+, hackrf, rtl-sdr, airspy, limesuite, libiio
+, USRPSupport ? false, uhd }:
 
 python3Packages.buildPythonApplication rec {
   pname = "urh";
@@ -12,14 +13,16 @@ python3Packages.buildPythonApplication rec {
     sha256 = "1jrrj9c4ddm37m8j0g693xjimpnlvx7lan5kxish5p14xpwdak35";
   };
 
-  buildInputs = [ hackrf rtl-sdr airspy limesuite ];
+  buildInputs = [ hackrf rtl-sdr airspy limesuite libiio ]
+    ++ lib.optional USRPSupport uhd;
+
   propagatedBuildInputs = with python3Packages; [
-    pyqt5 numpy psutil cython pyzmq
+    pyqt5 numpy psutil cython pyzmq pyaudio
   ];
 
   doCheck = false;
 
-  meta = with stdenv.lib; {
+  meta = with lib; {
     homepage = "https://github.com/jopohl/urh";
     description = "Universal Radio Hacker: investigate wireless protocols like a boss";
     license = licenses.gpl3;