1{stdenv, fetchurl, perl, python, swig, gd, libxml2, tcl, libusb, pkgconfig,
2 boost, libtool, perlPackages }:
3
4stdenv.mkDerivation rec {
5 pname = "hamlib";
6 version = "1.2.15.3";
7 name = "${pname}-${version}";
8
9 src = fetchurl {
10 url = "mirror://sourceforge/${pname}/${name}.tar.gz";
11 sha256 = "0ppp6fc2h9d8p30j2s9wlqd620kmnny4wd8fc3jxd6gxwi4lbjm2";
12 };
13
14 buildInputs = [ perl perlPackages.ExtUtilsMakeMaker python swig gd libxml2
15 tcl libusb pkgconfig boost libtool ];
16
17 configureFlags = [ "--with-perl-binding" "--with-python-binding"
18 "--with-tcl-binding" "--with-rigmatrix" ];
19
20 meta = {
21 description = "Runtime library to control radio transceivers and receivers";
22 longDescription = ''
23 Hamlib provides a standardized programming interface that applications
24 can use to send the appropriate commands to a radio.
25
26 Also included in the package is a simple radio control program 'rigctl',
27 which lets one control a radio transceiver or receiver, either from
28 command line interface or in a text-oriented interactive interface.
29 '';
30 license = with stdenv.lib.licenses; [ gpl2Plus lgpl2Plus ];
31 homepage = http://hamlib.sourceforge.net;
32 maintainers = with stdenv.lib.maintainers; [ relrod ];
33 };
34}