diff options
author | Nikolay Korotkiy <sikmir@gmail.com> | 2021-10-28 11:01:22 +0300 |
---|---|---|
committer | Nikolay Korotkiy <sikmir@gmail.com> | 2021-10-28 11:01:22 +0300 |
commit | ec6e1b27f06b68a0e3f08480dda54d33cf91a9ed (patch) | |
tree | f5a774c76fcafd06f9f491f924149d7f2fc47c55 | |
parent | 19b87ec97df2819e4f4862d1c7521a4fec2e20fc (diff) |
dump1090: 5.0 → 6.1
-rw-r--r-- | pkgs/applications/radio/dump1090/default.nix | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/pkgs/applications/radio/dump1090/default.nix b/pkgs/applications/radio/dump1090/default.nix index 927fa32bd55b..00e5e0089cf8 100644 --- a/pkgs/applications/radio/dump1090/default.nix +++ b/pkgs/applications/radio/dump1090/default.nix @@ -5,17 +5,19 @@ , libusb1 , ncurses , rtl-sdr +, hackrf +, limesuite }: stdenv.mkDerivation rec { pname = "dump1090"; - version = "5.0"; + version = "6.1"; src = fetchFromGitHub { owner = "flightaware"; repo = pname; rev = "v${version}"; - sha256 = "1fckfcgypmplzl1lidd04jxiabczlfx9mv21d6rbsfknghsjpn03"; + sha256 = "sha256-OLXnT5TD6ZBNJUk4qXOMbr+NWdw3j1rv1xkFPZi4Wo8="; }; nativeBuildInputs = [ pkg-config ]; @@ -25,7 +27,15 @@ stdenv.mkDerivation rec { libusb1 ncurses rtl-sdr - ]; + hackrf + ] ++ lib.optional stdenv.isLinux limesuite; + + NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang + "-Wno-implicit-function-declaration -Wno-int-conversion"; + + buildFlags = [ "dump1090" "view1090" ]; + + doCheck = true; installPhase = '' runHook preInstall @@ -41,7 +51,7 @@ stdenv.mkDerivation rec { description = "A simple Mode S decoder for RTLSDR devices"; homepage = "https://github.com/flightaware/dump1090"; license = licenses.gpl2Plus; - platforms = platforms.linux; + platforms = platforms.unix; maintainers = with maintainers; [ earldouglas ]; }; } |