package.nix (1097B)
1 { 2 lib, 3 stdenv, 4 fetchFromGitHub, 5 cmake, 6 pkg-config, 7 fftwFloat, 8 lame, 9 libconfig, 10 libshout, 11 pulseaudio, 12 rtl-sdr, 13 soapysdr, 14 }: 15 16 stdenv.mkDerivation (finalAttrs: { 17 pname = "rtlsdr-airband"; 18 version = "5.1.1"; 19 20 src = fetchFromGitHub { 21 owner = "rtl-airband"; 22 repo = "RTLSDR-Airband"; 23 tag = "v${finalAttrs.version}"; 24 hash = "sha256-NHxRMaOqYrjy+dQvVsRwM/+v6BC7ufPC4O93BRQ6Nuc="; 25 }; 26 27 patches = [ ./find-version.patch ]; 28 29 nativeBuildInputs = [ 30 cmake 31 pkg-config 32 ]; 33 34 buildInputs = [ 35 fftwFloat 36 lame 37 libconfig 38 libshout 39 pulseaudio 40 rtl-sdr 41 soapysdr 42 ]; 43 44 cmakeFlags = [ 45 (lib.cmakeBool "NFM" true) 46 (lib.cmakeFeature "CMAKE_POLICY_VERSION_MINIMUM" "3.10") 47 (lib.cmakeFeature "RTL_AIRBAND_VERSION" finalAttrs.version) 48 ]; 49 50 meta = { 51 description = "Multichannel AM/NFM demodulator"; 52 homepage = "https://github.com/rtl-airband/RTLSDR-Airband"; 53 license = lib.licenses.gpl3Plus; 54 maintainers = [ lib.maintainers.sikmir ]; 55 platforms = lib.platforms.linux; 56 skip.ci = stdenv.isDarwin; 57 }; 58 })
