1 { stdenv, lib, fetchFromGitHub
2 , cmake , pkg-config, libusb1
5 stdenv.mkDerivation rec {
9 src = fetchFromGitHub {
11 repo = "airspyone_host";
13 sha256 = "1v7sfkkxc6f8ny1p9xrax1agkl6q583mjx8k0lrrwdz31rf9qgw9";
17 substituteInPlace airspy-tools/CMakeLists.txt --replace "/etc/udev/rules.d" "$out/etc/udev/rules.d"
20 nativeBuildInputs = [ cmake pkg-config ];
21 buildInputs = [ libusb1 ];
24 lib.optionals stdenv.isLinux [ "-DINSTALL_UDEV_RULES=ON" ];
27 homepage = "https://github.com/airspy/airspyone_host";
28 description = "Host tools and driver library for the AirSpy SDR";
29 license = licenses.bsd3;
30 platforms = with platforms; linux ++ darwin;
31 maintainers = with maintainers; [ markuskowa ];