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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
860 B
Nix
Raw Normal View History

{ lib, stdenv, fetchFromGitHub, cmake, pkg-config
2018-04-25 17:01:40 +00:00
, hackrf, soapysdr
, libobjc, IOKit, Security
2018-04-25 17:01:40 +00:00
} :
let
2022-01-27 00:51:15 +00:00
version = "0.3.4";
2018-04-25 17:01:40 +00:00
in stdenv.mkDerivation {
2019-08-13 21:52:01 +00:00
pname = "soapyhackrf";
inherit version;
2018-04-25 17:01:40 +00:00
src = fetchFromGitHub {
owner = "pothosware";
repo = "SoapyHackRF";
rev = "soapy-hackrf-${version}";
2022-01-27 00:51:15 +00:00
sha256 = "sha256-fzPYHJAPX8FkFxPXpLlUagTd/NoamRX0YnxHwkbV1nI=";
2018-04-25 17:01:40 +00:00
};
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ hackrf soapysdr ]
++ lib.optionals stdenv.isDarwin [ libobjc IOKit Security ];
2018-04-25 17:01:40 +00:00
cmakeFlags = [ "-DSoapySDR_DIR=${soapysdr}/share/cmake/SoapySDR/" ];
meta = with lib; {
homepage = "https://github.com/pothosware/SoapyHackRF";
2018-04-25 17:01:40 +00:00
description = "SoapySDR plugin for HackRF devices";
license = licenses.mit;
maintainers = with maintainers; [ markuskowa ];
platforms = platforms.unix;
2018-04-25 17:01:40 +00:00
};
}