2017-10-19 02:45:40 +01:00
|
|
|
{ stdenv, fetchFromGitHub, pkgconfig, libusb, rtl-sdr }:
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-02-18 16:22:49 +00:00
|
|
|
pname = "dump1090";
|
2017-10-19 02:45:40 +01:00
|
|
|
version = "2014-10-31";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "MalcolmRobb";
|
2019-02-18 16:22:49 +00:00
|
|
|
repo = pname;
|
2017-10-19 02:45:40 +01:00
|
|
|
rev = "bff92c4ad772a0a8d433f788d39dae97e00e4dbe";
|
|
|
|
sha256 = "06aaj9gpz5v4qzvnp8xf18wdfclp0jvn3hflls79ly46gz2dh9hy";
|
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
buildInputs = [ libusb rtl-sdr ];
|
|
|
|
|
2017-12-31 20:57:44 +00:00
|
|
|
makeFlags = [ "PREFIX=$(out)" ];
|
2017-10-19 02:45:40 +01:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
mkdir -p $out/bin $out/share
|
2017-12-31 20:57:44 +00:00
|
|
|
cp -v dump1090 view1090 $out/bin
|
2017-10-19 02:45:40 +01: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/MalcolmRobb/dump1090;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
platforms = platforms.linux;
|
|
|
|
maintainers = with maintainers; [ earldouglas ];
|
|
|
|
};
|
|
|
|
}
|