2021-07-25 23:01:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, hamlib
|
2021-12-23 11:10:41 +00:00
|
|
|
, fltk13
|
2021-07-25 23:01:57 +00:00
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, portaudio
|
|
|
|
, libsndfile
|
|
|
|
, libsamplerate
|
|
|
|
, libpulseaudio
|
|
|
|
, libXinerama
|
|
|
|
, gettext
|
|
|
|
, pkg-config
|
|
|
|
, alsa-lib
|
2021-07-25 21:18:11 +00:00
|
|
|
, udev
|
2021-07-25 23:01:57 +00:00
|
|
|
}:
|
2014-05-11 21:11:10 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-05-11 22:16:11 +00:00
|
|
|
pname = "fldigi";
|
2024-04-29 09:23:56 +00:00
|
|
|
version = "4.2.05";
|
2014-05-11 21:11:10 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-02-03 10:30:33 +00:00
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
2024-04-29 09:23:56 +00:00
|
|
|
hash = "sha256-rBGJ+63Szhy37LQw0LpE2/lLyP5lwK7hsz/uq453iHY=";
|
2014-05-11 21:11:10 +00:00
|
|
|
};
|
|
|
|
|
2021-07-25 21:18:11 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2021-07-25 23:01:57 +00:00
|
|
|
buildInputs = [
|
|
|
|
libXinerama
|
|
|
|
gettext
|
|
|
|
hamlib
|
2021-12-23 11:10:41 +00:00
|
|
|
fltk13
|
2021-07-25 23:01:57 +00:00
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
portaudio
|
|
|
|
libsndfile
|
|
|
|
libsamplerate
|
2021-07-25 21:18:11 +00:00
|
|
|
] ++ lib.optionals (stdenv.isLinux) [ libpulseaudio alsa-lib udev ];
|
2014-05-11 21:11:10 +00:00
|
|
|
|
2024-05-04 21:40:32 +00:00
|
|
|
env.CXXFLAGS = lib.optionalString stdenv.cc.isClang "-std=c++14";
|
|
|
|
|
2021-12-23 11:10:41 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-07-25 23:01:57 +00:00
|
|
|
meta = with lib; {
|
2014-05-11 21:11:10 +00:00
|
|
|
description = "Digital modem program";
|
2020-04-05 17:31:28 +00:00
|
|
|
homepage = "https://sourceforge.net/projects/fldigi/";
|
2021-07-25 23:01:57 +00:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ relrod ftrvxmtrx ];
|
2021-07-25 21:18:11 +00:00
|
|
|
platforms = platforms.unix;
|
2014-05-11 21:11:10 +00:00
|
|
|
};
|
|
|
|
}
|