depot/third_party/nixpkgs/pkgs/applications/radio/dump1090/default.nix
Default email a29f39726d Project import generated by Copybara.
GitOrigin-RevId: 39e6bf76474ce742eb027a88c4da6331f0a1526f
2021-05-04 23:07:42 +02:00

47 lines
903 B
Nix

{ lib, stdenv
, fetchFromGitHub
, pkg-config
, libbladeRF
, libusb1
, ncurses
, rtl-sdr
}:
stdenv.mkDerivation rec {
pname = "dump1090";
version = "5.0";
src = fetchFromGitHub {
owner = "flightaware";
repo = pname;
rev = "v${version}";
sha256 = "1fckfcgypmplzl1lidd04jxiabczlfx9mv21d6rbsfknghsjpn03";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
libbladeRF
libusb1
ncurses
rtl-sdr
];
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share
cp -v dump1090 view1090 $out/bin
cp -vr public_html $out/share/dump1090
runHook postInstall
'';
meta = with lib; {
description = "A simple Mode S decoder for RTLSDR devices";
homepage = "https://github.com/flightaware/dump1090";
license = licenses.gpl2Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ earldouglas ];
};
}