diff options
author | Elis Hirwing <elis@hirwing.se> | 2019-02-09 19:34:06 +0100 |
---|---|---|
committer | Elis Hirwing <elis@hirwing.se> | 2019-02-09 21:39:14 +0100 |
commit | 711275b57b2b8fec2ca3f2eefd84646817507776 (patch) | |
tree | d64a74f4a07e373069d8c478ff280c8a515a0f0f /pkgs/applications/radio/soapyhackrf | |
parent | b384e3d4745cbd0f5cbecde6301467f8e1ddfabb (diff) |
soapyhackrf: Move from misc to radio
Diffstat (limited to 'pkgs/applications/radio/soapyhackrf')
-rw-r--r-- | pkgs/applications/radio/soapyhackrf/default.nix | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/pkgs/applications/radio/soapyhackrf/default.nix b/pkgs/applications/radio/soapyhackrf/default.nix new file mode 100644 index 0000000000000..2c5dd058ced35 --- /dev/null +++ b/pkgs/applications/radio/soapyhackrf/default.nix @@ -0,0 +1,30 @@ +{ stdenv, fetchFromGitHub, cmake, pkgconfig +, hackrf, soapysdr +} : + +let + version = "0.3.3"; + +in stdenv.mkDerivation { + name = "soapyhackrf-${version}"; + + src = fetchFromGitHub { + owner = "pothosware"; + repo = "SoapyHackRF"; + rev = "soapy-hackrf-${version}"; + sha256 = "1awn89z462500gb3fjb7x61b1znkjri9n1d39bqfip1qk4s11pxc"; + }; + + nativeBuildInputs = [ cmake pkgconfig ]; + buildInputs = [ hackrf soapysdr ]; + + cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ]; + + meta = with stdenv.lib; { + homepage = https://github.com/pothosware/SoapyHackRF; + description = "SoapySDR plugin for HackRF devices"; + license = licenses.mit; + maintainers = with maintainers; [ markuskowa ]; + platforms = platforms.linux; + }; +} |