2021-07-26 00:01:57 +01:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, hamlib
|
2021-12-23 11:10:41 +00:00
|
|
|
, fltk13
|
2021-07-26 00:01:57 +01:00
|
|
|
, libjpeg
|
|
|
|
, libpng
|
|
|
|
, portaudio
|
|
|
|
, libsndfile
|
|
|
|
, libsamplerate
|
|
|
|
, libpulseaudio
|
|
|
|
, libXinerama
|
|
|
|
, gettext
|
|
|
|
, pkg-config
|
|
|
|
, alsa-lib
|
2021-07-25 22:18:11 +01:00
|
|
|
, udev
|
2021-07-26 00:01:57 +01:00
|
|
|
}:
|
2014-05-11 22:11:10 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2014-05-11 23:16:11 +01:00
|
|
|
pname = "fldigi";
|
2021-08-07 21:19:15 +01:00
|
|
|
version = "4.1.20";
|
2014-05-11 22:11:10 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2019-02-03 10:30:33 +00:00
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
2021-08-07 21:19:15 +01:00
|
|
|
sha256 = "0f64pqijl3jlfmv00hkdxvn1wy5yy3zl33p6vf3fn1b91w590c2h";
|
2014-05-11 22:11:10 +01:00
|
|
|
};
|
|
|
|
|
2021-07-25 22:18:11 +01:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
2021-07-26 00:01:57 +01:00
|
|
|
buildInputs = [
|
|
|
|
libXinerama
|
|
|
|
gettext
|
|
|
|
hamlib
|
2021-12-23 11:10:41 +00:00
|
|
|
fltk13
|
2021-07-26 00:01:57 +01:00
|
|
|
libjpeg
|
|
|
|
libpng
|
|
|
|
portaudio
|
|
|
|
libsndfile
|
|
|
|
libsamplerate
|
2021-07-25 22:18:11 +01:00
|
|
|
] ++ lib.optionals (stdenv.isLinux) [ libpulseaudio alsa-lib udev ];
|
2014-05-11 22:11:10 +01:00
|
|
|
|
2021-12-23 11:10:41 +00:00
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-07-26 00:01:57 +01:00
|
|
|
meta = with lib; {
|
2014-05-11 22:11:10 +01:00
|
|
|
description = "Digital modem program";
|
2020-04-05 18:31:28 +01:00
|
|
|
homepage = "https://sourceforge.net/projects/fldigi/";
|
2021-07-26 00:01:57 +01:00
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
maintainers = with maintainers; [ relrod ftrvxmtrx ];
|
2021-07-25 22:18:11 +01:00
|
|
|
platforms = platforms.unix;
|
2021-12-23 13:29:04 +00:00
|
|
|
# unable to execute command: posix_spawn failed: Argument list too long
|
|
|
|
# Builds fine on aarch64-darwin
|
|
|
|
broken = stdenv.system == "x86_64-darwin";
|
2014-05-11 22:11:10 +01:00
|
|
|
};
|
|
|
|
}
|