nixpkgs/pkgs/applications/misc/airspy/default.nix

31 lines
749 B
Nix
Raw Normal View History

2017-12-06 08:37:05 +00:00
{ stdenv, fetchFromGitHub
, cmake , pkgconfig, libusb
}:
let
version = "1.0.9";
2017-12-14 12:33:41 +00:00
in
2017-12-06 08:37:05 +00:00
stdenv.mkDerivation {
name = "airspy-${version}";
src = fetchFromGitHub {
owner = "airspy";
repo = "airspyone_host";
rev = "v${version}";
sha256 = "04kx2p461sqd4q354n1a99zcabg9h29dwcnyhakykq8bpg3mgf1x";
};
nativeBuildInputs = [ cmake pkgconfig ];
buildInputs = [ libusb ];
2017-12-14 12:33:41 +00:00
2017-12-06 08:37:05 +00:00
cmakeFlags = [ "-DINSTALL_UDEV_RULES=OFF" ];
2017-12-14 12:33:41 +00:00
2017-12-06 08:37:05 +00:00
meta = with stdenv.lib; {
homepage = http://github.com/airspy/airspyone_host;
description = "Host tools and driver library for the AirSpy SDR";
license = licenses.free;
platforms = platforms.linux;
2017-12-14 12:33:41 +00:00
maintainers = with maintainers; [ markuskowa ];
2017-12-06 08:37:05 +00:00
};
}