default.nix (843B)
1 { lib, stdenv, fetchFromGitHub, cmake, pkg-config, libacars, libsndfile, paho-mqtt-c, rtl-sdr }: 2 3 stdenv.mkDerivation (finalAttrs: { 4 pname = "acarsdec"; 5 version = "3.7"; 6 7 src = fetchFromGitHub { 8 owner = "TLeconte"; 9 repo = "acarsdec"; 10 rev = "acarsdec-${finalAttrs.version}"; 11 hash = "sha256-MBy9Xq5ufusqSKGe40JxgnFeo4wnabThbDpGEE6u1so="; 12 }; 13 14 nativeBuildInputs = [ cmake pkg-config ]; 15 16 buildInputs = [ libacars libsndfile paho-mqtt-c rtl-sdr ]; 17 18 cmakeFlags = [ 19 (lib.cmakeBool "rtl" true) 20 (lib.cmakeBool "airspy" false) 21 (lib.cmakeBool "sdrplay" false) 22 ]; 23 24 meta = with lib; { 25 description = "ACARS SDR decoder"; 26 inherit (finalAttrs.src.meta) homepage; 27 license = licenses.gpl2; 28 maintainers = [ maintainers.sikmir ]; 29 platforms = platforms.linux; 30 skip.ci = stdenv.isDarwin; 31 }; 32 })