nixpkgs/pkgs/applications/radio/dump1090/default.nix
Daniël de Kok 9ab21b09bf dump1090: 2014-10-31 -> 3.7.1
The derivation uses an upstream for dump1090 that has not been updated
since 2014. FlightAware seems to have the most actively maintained
version of dump1090, so this change switches to FlightAware's
version, bringing 5 years of improvements.
2019-12-02 14:45:45 +01:00

44 lines
854 B
Nix

{ stdenv
, fetchFromGitHub
, pkgconfig
, libbladeRF
, libusb
, ncurses
, rtl-sdr
}:
stdenv.mkDerivation rec {
pname = "dump1090";
version = "3.7.2";
src = fetchFromGitHub {
owner = "flightaware";
repo = pname;
rev = "v${version}";
sha256 = "0vlv9bd805kid202xxkrnl51rh02cyrl055gbcqlqgk51j5rrq8w";
};
nativeBuildInputs = [ pkgconfig ];
buildInputs = [
libbladeRF
libusb
ncurses
rtl-sdr
];
installPhase = ''
mkdir -p $out/bin $out/share
cp -v dump1090 view1090 $out/bin
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;
platforms = platforms.linux;
maintainers = with maintainers; [ earldouglas ];
};
}