Files
nixpkgs/pkgs/by-name/du/dump1090-fa/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

73 lines
1.4 KiB
Nix

{
lib,
stdenv,
fetchFromGitHub,
fetchpatch,
pkg-config,
hackrf,
libbladeRF,
libusb1,
limesuite,
ncurses,
rtl-sdr,
soapysdr-with-plugins,
}:
stdenv.mkDerivation (finalAttrs: {
pname = "dump1090";
version = "10.2";
src = fetchFromGitHub {
owner = "flightaware";
repo = "dump1090";
tag = "v${finalAttrs.version}";
hash = "sha256-kTJ8FMugBRJaxWas/jEj4E5TmVnNpNdhq4r2YFFwgTU=";
};
nativeBuildInputs = [ pkg-config ];
buildInputs = [
hackrf
libbladeRF
libusb1
ncurses
rtl-sdr
soapysdr-with-plugins
]
++ lib.optional stdenv.hostPlatform.isLinux limesuite;
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.cc.isClang "-Wno-implicit-function-declaration -Wno-int-conversion -Wno-unknown-warning-option";
buildFlags = [
"DUMP1090_VERSION=${finalAttrs.version}"
"showconfig"
"dump1090"
"view1090"
"faup1090"
];
doCheck = true;
installPhase = ''
runHook preInstall
mkdir -p $out/bin $out/share
cp -v dump1090 view1090 faup1090 $out/bin
cp -vr public_html $out/share/dump1090
runHook postInstall
'';
meta = {
description = "Simple Mode S decoder for RTLSDR devices";
homepage = "https://github.com/flightaware/dump1090";
license = lib.licenses.gpl2Plus;
platforms = lib.platforms.unix;
maintainers = with lib.maintainers; [
earldouglas
aciceri
];
mainProgram = "dump1090";
};
})