depot/third_party/nixpkgs/pkgs/applications/radio/soapybladerf/default.nix
Default email 7e47f3658e Project import generated by Copybara.
GitOrigin-RevId: 1925c603f17fc89f4c8f6bf6f631a802ad85d784
2024-09-26 11:04:55 +00:00

34 lines
895 B
Nix

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
, libbladeRF, soapysdr
, libobjc, IOKit, Security
} :
let
version = "0.4.1";
in stdenv.mkDerivation {
pname = "soapybladerf";
inherit version;
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyBladeRF";
rev = "soapy-bladerf-${version}";
sha256 = "02wh09850vinqg248fw4lxmx7y857cqmnnb8jm9zhyrsggal0hki";
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libbladeRF soapysdr ]
++ lib.optionals stdenv.hostPlatform.isDarwin [ libobjc IOKit Security ];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
meta = with lib; {
homepage = "https://github.com/pothosware/SoapyBladeRF";
description = "SoapySDR plugin for BladeRF devices";
license = licenses.lgpl21Only;
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.unix;
};
}