15 , pythonBindings ? true
17 , perlBindings ? stdenv.buildPlatform == stdenv.hostPlatform
21 python3 = python311; # needs distutils and imp
23 stdenv.mkDerivation rec {
28 url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
29 sha256 = "10788mgrhbc57zpzakcxv5aqnr2819pcshml6fbh8zvnkja562y9";
33 depsBuildBuild = [ buildPackages.stdenv.cc ];
38 ] ++ lib.optionals pythonBindings [ python3 ]
39 ++ lib.optionals tclBindings [ tcl ]
40 ++ lib.optionals perlBindings [ perl ];
47 ] ++ lib.optionals pythonBindings [ python3 ncurses ]
48 ++ lib.optionals tclBindings [ tcl ];
52 "CC_FOR_BUILD=${stdenv.cc.targetPrefix}cc"
53 ] ++ lib.optionals perlBindings [ "--with-perl-binding" ]
54 ++ lib.optionals tclBindings [ "--with-tcl-binding" "--with-tcl=${tcl}/lib/" ]
55 ++ lib.optionals pythonBindings [ "--with-python-binding" ];
58 description = "Runtime library to control radio transceivers and receivers";
60 Hamlib provides a standardized programming interface that applications
61 can use to send the appropriate commands to a radio.
63 Also included in the package is a simple radio control program 'rigctl',
64 which lets one control a radio transceiver or receiver, either from
65 command line interface or in a text-oriented interactive interface.
67 license = with licenses; [ gpl2Plus lgpl2Plus ];
68 homepage = "https://hamlib.sourceforge.net";
69 maintainers = with maintainers; [ relrod ];
70 platforms = with platforms; unix;