2021-08-05 21:33:18 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, fetchurl
|
|
|
|
, perl
|
|
|
|
, swig
|
|
|
|
, gd
|
|
|
|
, ncurses
|
2024-07-27 06:49:29 +00:00
|
|
|
, python311
|
2021-08-05 21:33:18 +00:00
|
|
|
, libxml2
|
|
|
|
, tcl
|
|
|
|
, libusb-compat-0_1
|
|
|
|
, pkg-config
|
|
|
|
, boost
|
|
|
|
, libtool
|
|
|
|
, perlPackages
|
|
|
|
, pythonBindings ? true
|
|
|
|
, tclBindings ? true
|
|
|
|
, perlBindings ? true
|
|
|
|
}:
|
2024-07-27 06:49:29 +00:00
|
|
|
let
|
|
|
|
python3 = python311; # needs distutils and imp
|
|
|
|
in
|
2021-08-05 21:33:18 +00:00
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "hamlib";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "4.5.5";
|
2021-08-05 21:33:18 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
|
2023-04-29 16:46:19 +00:00
|
|
|
sha256 = "sha256-YByJ8y7SJelSet49ZNDQXSMgLAWuIf+nflnXDuRZf80=";
|
2021-08-05 21:33:18 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
swig
|
|
|
|
pkg-config
|
|
|
|
libtool
|
|
|
|
];
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
gd
|
|
|
|
libxml2
|
|
|
|
libusb-compat-0_1
|
|
|
|
boost
|
|
|
|
] ++ lib.optionals pythonBindings [ python3 ncurses ]
|
|
|
|
++ lib.optionals tclBindings [ tcl ]
|
|
|
|
++ lib.optionals perlBindings [ perl perlPackages.ExtUtilsMakeMaker ];
|
|
|
|
|
|
|
|
configureFlags = lib.optionals perlBindings [ "--with-perl-binding" ]
|
|
|
|
++ lib.optionals tclBindings [ "--with-tcl-binding" "--with-tcl=${tcl}/lib/" ]
|
|
|
|
++ lib.optionals pythonBindings [ "--with-python-binding" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Runtime library to control radio transceivers and receivers";
|
|
|
|
longDescription = ''
|
|
|
|
Hamlib provides a standardized programming interface that applications
|
|
|
|
can use to send the appropriate commands to a radio.
|
|
|
|
|
|
|
|
Also included in the package is a simple radio control program 'rigctl',
|
|
|
|
which lets one control a radio transceiver or receiver, either from
|
|
|
|
command line interface or in a text-oriented interactive interface.
|
|
|
|
'';
|
|
|
|
license = with licenses; [ gpl2Plus lgpl2Plus ];
|
2023-02-22 10:55:15 +00:00
|
|
|
homepage = "https://hamlib.sourceforge.net";
|
2021-08-05 21:33:18 +00:00
|
|
|
maintainers = with maintainers; [ relrod ];
|
|
|
|
platforms = with platforms; unix;
|
|
|
|
};
|
|
|
|
}
|