fork
Configure Feed
Select the types of activity you want to include in your feed.
lol
fork
Configure Feed
Select the types of activity you want to include in your feed.
1{ stdenv, fetchFromGitHub, pkgconfig, cmake, git, doxygen, help2man, tecla
2, libusb1, udev }:
3
4stdenv.mkDerivation rec {
5 version = "1.4.0";
6 name = "libbladeRF-v${version}";
7
8 src = fetchFromGitHub {
9 owner = "Nuand";
10 repo = "bladeRF";
11 rev = "libbladeRF_v${version}";
12 sha256 = "1y00hqsmqaix4dql8mb75zx87zvn8b483yxv53x9qyjspksbs60c";
13 };
14
15 buildInputs = [ pkgconfig cmake git doxygen help2man tecla libusb1 udev ];
16
17 # Fixup shebang
18 prePatch = "patchShebangs host/utilities/bladeRF-cli/src/cmd/doc/generate.bash";
19
20 # Let us avoid nettools as a dependency.
21 patchPhase = ''
22 sed -i 's/$(hostname)/hostname/' host/utilities/bladeRF-cli/src/cmd/doc/generate.bash
23 '';
24
25 cmakeFlags = [
26 "-DCMAKE_BUILD_TYPE=Debug"
27 "-DUDEV_RULES_PATH=etc/udev/rules.d"
28 "-DINSTALL_UDEV_RULES=ON"
29 "-DBUILD_DOCUMENTATION=ON"
30 ];
31
32 meta = with stdenv.lib; {
33 homepage = https://www.nuand.com/;
34 description = "Supporting library of the BladeRF SDR opensource hardware";
35 license = licenses.lgpl21;
36 maintainers = with maintainers; [ funfunctor ];
37 platforms = platforms.linux;
38 };
39}