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

44 lines
856 B
Nix
Raw Normal View History

{ stdenv
, fetchFromGitHub
, pkgconfig
, libbladeRF
, libusb1
, ncurses
, rtl-sdr
}:
2017-10-19 01:45:40 +00:00
stdenv.mkDerivation rec {
2019-02-18 16:22:49 +00:00
pname = "dump1090";
2020-04-12 11:11:11 +00:00
version = "3.8.0";
2017-10-19 01:45:40 +00:00
src = fetchFromGitHub {
owner = "flightaware";
2019-02-18 16:22:49 +00:00
repo = pname;
rev = "v${version}";
2020-04-12 11:11:11 +00:00
sha256 = "0c30x56h79hza9m6b9zp5y28jxx4f4n5xgaaw597l8agcm5iia0p";
2017-10-19 01:45:40 +00:00
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
libbladeRF
libusb1
ncurses
rtl-sdr
];
2017-10-19 01:45:40 +00:00
installPhase = ''
mkdir -p $out/bin $out/share
cp -v dump1090 view1090 $out/bin
2017-10-19 01:45:40 +00:00
cp -vr public_html $out/share/dump1090
'';
meta = with stdenv.lib; {
description = "A simple Mode S decoder for RTLSDR devices";
homepage = "https://github.com/flightaware/dump1090";
license = licenses.gpl2Plus;
2017-10-19 01:45:40 +00:00
platforms = platforms.linux;
maintainers = with maintainers; [ earldouglas ];
};
}