1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-15 00:54:46 +00:00
nixpkgs/pkgs/applications/radio/airspy/default.nix

34 lines
879 B
Nix
Raw Normal View History

{ stdenv, lib, fetchFromGitHub
, cmake , pkg-config, libusb1
2017-12-06 08:37:05 +00:00
}:
stdenv.mkDerivation rec {
pname = "airspy";
2017-12-06 08:37:05 +00:00
version = "1.0.9";
src = fetchFromGitHub {
owner = "airspy";
repo = "airspyone_host";
rev = "v${version}";
sha256 = "04kx2p461sqd4q354n1a99zcabg9h29dwcnyhakykq8bpg3mgf1x";
};
2017-12-06 08:37:05 +00:00
postPatch = ''
substituteInPlace airspy-tools/CMakeLists.txt --replace "/etc/udev/rules.d" "$out/etc/udev/rules.d"
'';
nativeBuildInputs = [ cmake pkg-config ];
buildInputs = [ libusb1 ];
2017-12-14 12:33:41 +00:00
cmakeFlags =
lib.optionals stdenv.isLinux [ "-DINSTALL_UDEV_RULES=ON" ];
2017-12-14 12:33:41 +00:00
meta = with lib; {
homepage = "https://github.com/airspy/airspyone_host";
description = "Host tools and driver library for the AirSpy SDR";
license = licenses.bsd3;
platforms = with platforms; linux ++ darwin;
maintainers = with maintainers; [ markuskowa ];
};
}