depot/third_party/nixpkgs/pkgs/applications/radio/soapyairspy/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

31 lines
750 B
Nix

{ stdenv, fetchFromGitHub, cmake
, airspy, soapysdr
} :
let
version = "0.1.2";
in stdenv.mkDerivation {
pname = "soapyairspy";
inherit version;
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyAirspy";
rev = "soapy-airspy-${version}";
sha256 = "061r77vs6ywxbxfif12y6v5xkz6gcvbz9k060q12vmdh6sisdwk2";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ airspy soapysdr ];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
meta = with stdenv.lib; {
homepage = "https://github.com/pothosware/SoapyAirspy";
description = "SoapySDR plugin for Airspy devices";
license = licenses.mit;
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.linux;
};
}