default.nix (903B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 libacars, 8 libsndfile, 9 paho-mqtt-c, 10 rtl-sdr, 11 }: 12 13 stdenv.mkDerivation (finalAttrs: { 14 pname = "acarsdec"; 15 version = "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "TLeconte"; 19 repo = "acarsdec"; 20 rev = "acarsdec-${finalAttrs.version}"; 21 hash = "sha256-MBy9Xq5ufusqSKGe40JxgnFeo4wnabThbDpGEE6u1so="; 22 }; 23 24 nativeBuildInputs = [ 25 cmake 26 pkg-config 27 ]; 28 29 buildInputs = [ 30 libacars 31 libsndfile 32 paho-mqtt-c 33 rtl-sdr 34 ]; 35 36 cmakeFlags = [ 37 (lib.cmakeBool "rtl" true) 38 (lib.cmakeBool "airspy" false) 39 (lib.cmakeBool "sdrplay" false) 40 ]; 41 42 meta = { 43 description = "ACARS SDR decoder"; 44 homepage = "https://github.com/TLeconte/acarsdec"; 45 license = lib.licenses.gpl2; 46 maintainers = [ lib.maintainers.sikmir ]; 47 platforms = lib.platforms.linux; 48 skip.ci = stdenv.isDarwin; 49 }; 50 })