diff options
author | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2015-01-25 21:25:47 +1100 |
---|---|---|
committer | Edward O'Callaghan <eocallaghan@alterapraxis.com> | 2015-01-25 22:49:27 +1100 |
commit | 67aec4b2d8acc7e87447174f07ec6f401f4f40c3 (patch) | |
tree | 371ee5a250141ebd713354f1e3f8e212048a6dbd /pkgs/development/libraries/libbladeRF/default.nix | |
parent | 35af8c61050617f1b2310465f6ab7695e906720b (diff) | |
download | nixpkgs-67aec4b2d8acc7e87447174f07ec6f401f4f40c3.tar nixpkgs-67aec4b2d8acc7e87447174f07ec6f401f4f40c3.tar.gz nixpkgs-67aec4b2d8acc7e87447174f07ec6f401f4f40c3.tar.bz2 nixpkgs-67aec4b2d8acc7e87447174f07ec6f401f4f40c3.tar.lz nixpkgs-67aec4b2d8acc7e87447174f07ec6f401f4f40c3.tar.xz nixpkgs-67aec4b2d8acc7e87447174f07ec6f401f4f40c3.tar.zst nixpkgs-67aec4b2d8acc7e87447174f07ec6f401f4f40c3.zip |
Provide libbladeRF package support
The BladeRF Software Defined Radio (SDR) is an open-source hardware platform for radio research. This package provides the libbladeRF system library and the corresponding bladeRF-cli tooling. Signed-off-by: Edward O'Callaghan <eocallaghan@alterapraxis.com>
Diffstat (limited to 'pkgs/development/libraries/libbladeRF/default.nix')
-rw-r--r-- | pkgs/development/libraries/libbladeRF/default.nix | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/pkgs/development/libraries/libbladeRF/default.nix b/pkgs/development/libraries/libbladeRF/default.nix new file mode 100644 index 00000000000..860eee86c63 --- /dev/null +++ b/pkgs/development/libraries/libbladeRF/default.nix @@ -0,0 +1,31 @@ +{ stdenv, fetchgit, pkgconfig, libftdi, libusb, udev, cmake, git }: + +stdenv.mkDerivation rec { + version = "1.1.0"; + name = "libbladeRF-v${version}"; + + src = fetchgit { + url = "https://github.com/Nuand/bladeRF/"; + rev = "refs/tags/libbladeRF_v${version}"; + sha256 = "19qd26yflig51scknyjf3r3nmnc2bni75294jpsv0idzqfj87lbr"; + name = "libbladeRF_v${version}-checkout"; + }; + + buildInputs = [ pkgconfig libftdi libusb udev cmake git ]; + +# XXX: documentation fails to build due to a "undeclared here" bug. +# requires pandoc in buildInputs also.. +# YYY: udev rule wont install to "/etc/udev/rules.d/88-nuand.rules"??? + configurePhase = '' + cmake -DCMAKE_BUILD_TYPE=Debug -DINSTALL_UDEV_RULES=OFF \ + -DBUILD_BLADERF_CLI_DOCUMENTATION=OFF -DCMAKE_INSTALL_PREFIX=$out . + ''; + + meta = { + homepage = "https://www.nuand.com/"; + description = "Supporting library of the BladeRF SDR opensource hardware"; + license = stdenv.lib.licenses.lgpl21; + maintainers = [ stdenv.lib.maintainers.funfunctor ]; + platforms = with stdenv.lib.platforms; linux; + }; +} |