{ lib , stdenv , fetchurl , hamlib , fltk14 , libjpeg , libpng , portaudio , libsndfile , libsamplerate , libpulseaudio , libXinerama , gettext , pkg-config , alsa-lib , udev }: stdenv.mkDerivation rec { pname = "fldigi"; version = "4.1.19"; src = fetchurl { url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz"; sha256 = "0zvfkmvxi31ccbpxvimkcrqrkf3wzr1pgja2ny04srrakl8ff5c7"; }; nativeBuildInputs = [ pkg-config ]; buildInputs = [ libXinerama gettext hamlib fltk14 libjpeg libpng portaudio libsndfile libsamplerate ] ++ lib.optionals (stdenv.isLinux) [ libpulseaudio alsa-lib udev ]; meta = with lib; { description = "Digital modem program"; homepage = "https://sourceforge.net/projects/fldigi/"; license = licenses.gpl3Plus; maintainers = with maintainers; [ relrod ftrvxmtrx ]; platforms = platforms.unix; }; }