diff options
author | Thibaut Marty <github@thibautmarty.fr> | 2019-08-01 18:56:06 +0200 |
---|---|---|
committer | Thibaut Marty <github@thibautmarty.fr> | 2019-08-03 22:57:47 +0200 |
commit | 1f0253997cd54b2a399584878204316c87e211ea (patch) | |
tree | 08ee7928cf4d83800aef9d5c6fff4b7755a98c9b /pkgs/development/libraries/libiio | |
parent | 7a7cf6faf05faa7751d4ba0b4f0869600ab7e2b3 (diff) | |
download | nixpkgs-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/development/libraries/libiio')
-rw-r--r-- | pkgs/development/libraries/libiio/default.nix | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/pkgs/development/libraries/libiio/default.nix b/pkgs/development/libraries/libiio/default.nix index ee8029966dc..df5035461af 100644 --- a/pkgs/development/libraries/libiio/default.nix +++ b/pkgs/development/libraries/libiio/default.nix @@ -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/ |