3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/applications/radio/soapyhackrf/default.nix

32 lines
771 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2018-04-25 18:01:40 +01:00
, hackrf, soapysdr
} :
let
version = "0.3.3";
2018-04-25 18:01:40 +01:00
in stdenv.mkDerivation {
2019-08-13 22:52:01 +01:00
pname = "soapyhackrf";
inherit version;
2018-04-25 18:01:40 +01:00
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyHackRF";
rev = "soapy-hackrf-${version}";
sha256 = "1awn89z462500gb3fjb7x61b1znkjri9n1d39bqfip1qk4s11pxc";
2018-04-25 18:01:40 +01:00
};
nativeBuildInputs = [ cmake pkg-config ];
2018-04-25 18:01:40 +01:00
buildInputs = [ hackrf soapysdr ];
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
meta = with lib; {
homepage = "https://github.com/pothosware/SoapyHackRF";
2018-04-25 18:01:40 +01:00
description = "SoapySDR plugin for HackRF devices";
license = licenses.mit;
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.linux;
};
}