1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libusb1, fftwSinglePrec }:
3 stdenv.mkDerivation rec {
7 src = fetchFromGitHub {
8 owner = "greatscottgadgets";
11 sha256 = "sha256-zvSSCNtqHOZVlrBggjgxEyUTqTiAIAhdzUkm4Pm9b3k=";
24 cmakeFlags = [ "-DUDEV_RULES_GROUP=plugdev" "-DUDEV_RULES_PATH=lib/udev/rules.d" ];
31 substituteInPlace host/cmake/modules/FindFFTW.cmake \
32 --replace "find_library (FFTW_LIBRARIES NAMES fftw3)" "find_library (FFTW_LIBRARIES NAMES fftw3f)"
36 description = "An open source SDR platform";
37 homepage = "https://greatscottgadgets.com/hackrf/";
38 license = licenses.gpl2;
39 platforms = platforms.all;
40 maintainers = with maintainers; [ sjmackenzie ];