default.nix (954B)
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.0.9"; 19 20 src = fetchFromGitHub { 21 owner = "charlie-foxtrot"; 22 repo = "RTLSDR-Airband"; 23 rev = "v${finalAttrs.version}"; 24 hash = "sha256-Rgsxim7FESVt1ZnVJFvVfMqJMgzVCfP1yBDBBO4zEsE="; 25 }; 26 27 nativeBuildInputs = [ 28 cmake 29 pkg-config 30 ]; 31 32 buildInputs = [ 33 fftwFloat 34 lame 35 libconfig 36 libshout 37 pulseaudio 38 rtl-sdr 39 soapysdr 40 ]; 41 42 cmakeFlags = [ (lib.cmakeBool "NFM" true) ]; 43 44 meta = { 45 description = "Multichannel AM/NFM demodulator"; 46 homepage = "https://github.com/charlie-foxtrot/RTLSDR-Airband"; 47 license = lib.licenses.gpl3Plus; 48 maintainers = [ lib.maintainers.sikmir ]; 49 platforms = lib.platforms.linux; 50 skip.ci = stdenv.isDarwin; 51 broken = true; 52 }; 53 })