nixpkgs/pkgs/applications/radio/soapyairspy/default.nix

31 lines
739 B
Nix
Raw Normal View History

2018-04-25 18:01:40 +01:00
{ stdenv, fetchFromGitHub, cmake
, airspy, soapysdr
} :
let
version = "0.1.2";
2018-04-25 18:01:40 +01:00
in stdenv.mkDerivation {
name = "soapyairspy-${version}";
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyAirspy";
rev = "soapy-airspy-${version}";
sha256 = "061r77vs6ywxbxfif12y6v5xkz6gcvbz9k060q12vmdh6sisdwk2";
2018-04-25 18:01:40 +01:00
};
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;
};
}