nixpkgs/pkgs/by-name/du/dump1090/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

60 lines
1.3 KiB
Nix
Raw Normal View History

{ lib, stdenv
, fetchFromGitHub
, pkg-config
2024-06-24 23:59:25 +00:00
, hackrf
, libbladeRF
, libusb1
2024-06-24 23:59:25 +00:00
, limesuite
, ncurses
, rtl-sdr
2024-06-24 23:59:25 +00:00
, soapysdr-with-plugins
}:
2017-10-19 01:45:40 +00:00
stdenv.mkDerivation rec {
2019-02-18 16:22:49 +00:00
pname = "dump1090";
2024-01-01 06:01:11 +00:00
version = "9.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}";
2024-01-01 06:01:11 +00:00
sha256 = "sha256-rc4mg+Px+0p2r38wxIah/rHqWjHSU0+KCPgqj/Gl3oo=";
2017-10-19 01:45:40 +00:00
};
nativeBuildInputs = [ pkg-config ];
2017-10-19 01:45:40 +00:00
buildInputs = [
2024-06-24 23:59:25 +00:00
hackrf
libbladeRF
libusb1
ncurses
rtl-sdr
2024-06-24 23:59:25 +00:00
soapysdr-with-plugins
2021-10-28 08:01:22 +00:00
] ++ lib.optional stdenv.hostPlatform.isLinux limesuite;
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang
2024-01-01 14:02:06 +00:00
"-Wno-implicit-function-declaration -Wno-int-conversion -Wno-unknown-warning-option";
2021-10-28 08:01:22 +00:00
2024-06-24 23:59:25 +00:00
buildFlags = [ "DUMP1090_VERSION=${version}" "showconfig" "dump1090" "view1090" ];
2021-10-28 08:01:22 +00:00
doCheck = true;
2017-10-19 01:45:40 +00:00
installPhase = ''
runHook preInstall
2017-10-19 01:45:40 +00:00
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
runHook postInstall
2017-10-19 01:45:40 +00:00
'';
meta = with lib; {
2017-10-19 01:45:40 +00:00
description = "Simple Mode S decoder for RTLSDR devices";
homepage = "https://github.com/flightaware/dump1090";
license = licenses.gpl2Plus;
2021-10-28 08:01:22 +00:00
platforms = platforms.unix;
2017-10-19 01:45:40 +00:00
maintainers = with maintainers; [ earldouglas ];
};
}