urh: add support for Pluto, soundcards, and optionally USRP
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
{ stdenv, fetchFromGitHub
|
||||
, cmake, flex, bison
|
||||
, libxml2, python
|
||||
, libusb1, runtimeShell
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
@@ -17,7 +18,17 @@ stdenv.mkDerivation rec {
|
||||
outputs = [ "out" "lib" "dev" "python" ];
|
||||
|
||||
nativeBuildInputs = [ cmake flex bison ];
|
||||
buildInputs = [ libxml2 ];
|
||||
buildInputs = [ libxml2 libusb1 ];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace libiio.rules.cmakein \
|
||||
--replace /bin/sh ${runtimeShell}
|
||||
'';
|
||||
|
||||
# since we can't expand $out in cmakeFlags
|
||||
preConfigure = ''
|
||||
cmakeFlags="$cmakeFlags -DUDEV_RULES_INSTALL_DIR=$out/etc/udev/rules.d"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
mkdir -p $python/lib/${python.libPrefix}/site-packages/
|
||||
|
||||
Reference in New Issue
Block a user