73a29e0b97
GitOrigin-RevId: 5bb20f9dc70e9ee16e21cc404b6508654931ce41
31 lines
770 B
Nix
31 lines
770 B
Nix
{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
|
|
, hackrf, soapysdr
|
|
} :
|
|
|
|
let
|
|
version = "0.3.4";
|
|
|
|
in stdenv.mkDerivation {
|
|
pname = "soapyhackrf";
|
|
inherit version;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pothosware";
|
|
repo = "SoapyHackRF";
|
|
rev = "soapy-hackrf-${version}";
|
|
sha256 = "sha256-fzPYHJAPX8FkFxPXpLlUagTd/NoamRX0YnxHwkbV1nI=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cmake pkg-config ];
|
|
buildInputs = [ hackrf soapysdr ];
|
|
|
|
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/pothosware/SoapyHackRF";
|
|
description = "SoapySDR plugin for HackRF devices";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ markuskowa ];
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|