From 9ab21b09bf5adb949ed8be14299fee5289ec4f95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Sun, 1 Dec 2019 08:44:14 +0100 Subject: [PATCH 1/2] 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. --- pkgs/applications/radio/dump1090/default.nix | 30 +++++++++++++------- 1 file changed, 20 insertions(+), 10 deletions(-) diff --git a/pkgs/applications/radio/dump1090/default.nix b/pkgs/applications/radio/dump1090/default.nix index 41ddb671a36..0a92bea44e8 100644 --- a/pkgs/applications/radio/dump1090/default.nix +++ b/pkgs/applications/radio/dump1090/default.nix @@ -1,21 +1,31 @@ -{ stdenv, fetchFromGitHub, pkgconfig, libusb, rtl-sdr }: +{ stdenv +, fetchFromGitHub +, pkgconfig +, libbladeRF +, libusb +, ncurses +, rtl-sdr +}: stdenv.mkDerivation rec { pname = "dump1090"; - version = "2014-10-31"; + version = "3.7.2"; src = fetchFromGitHub { - owner = "MalcolmRobb"; + owner = "flightaware"; repo = pname; - rev = "bff92c4ad772a0a8d433f788d39dae97e00e4dbe"; - sha256 = "06aaj9gpz5v4qzvnp8xf18wdfclp0jvn3hflls79ly46gz2dh9hy"; + rev = "v${version}"; + sha256 = "0vlv9bd805kid202xxkrnl51rh02cyrl055gbcqlqgk51j5rrq8w"; }; nativeBuildInputs = [ pkgconfig ]; - buildInputs = [ libusb rtl-sdr ]; - - makeFlags = [ "PREFIX=$(out)" ]; + buildInputs = [ + libbladeRF + libusb + ncurses + rtl-sdr + ]; installPhase = '' mkdir -p $out/bin $out/share @@ -25,8 +35,8 @@ stdenv.mkDerivation rec { meta = with stdenv.lib; { description = "A simple Mode S decoder for RTLSDR devices"; - homepage = https://github.com/MalcolmRobb/dump1090; - license = licenses.bsd3; + homepage = "https://github.com/flightaware/dump1090"; + license = licenses.gpl2Plus; platforms = platforms.linux; maintainers = with maintainers; [ earldouglas ]; }; From 02553c114d094189b761936c821bdb60769a4aa3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dani=C3=ABl=20de=20Kok?= Date: Mon, 2 Dec 2019 14:44:33 +0100 Subject: [PATCH 2/2] rl-2003: mention the removal of dump1090's internal web server --- nixos/doc/manual/release-notes/rl-2003.xml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/nixos/doc/manual/release-notes/rl-2003.xml b/nixos/doc/manual/release-notes/rl-2003.xml index b13aa1ba3dc..3447b1221bc 100644 --- a/nixos/doc/manual/release-notes/rl-2003.xml +++ b/nixos/doc/manual/release-notes/rl-2003.xml @@ -206,6 +206,14 @@ . + + + The dump1090 derivation has been changed to use FlightAware's dump1090 + as its upstream. However, this version does not have an internal webserver anymore. The + assets in the share/dump1090 directory of the derivation can be used + in conjunction with an external webserver to replace this functionality. + +