Merge pull request #129950 from hexagonal-sun/hamlib-bump

hamlib: 3.3 -> 4.2
This commit is contained in:
Sandro 2021-07-24 22:52:34 +00:00 committed by GitHub
commit dd2233fe6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 119 additions and 15 deletions

View File

@ -0,0 +1,64 @@
{ lib
, stdenv
, fetchurl
, perl
, swig
, gd
, ncurses
, python3
, libxml2
, tcl
, libusb-compat-0_1
, pkg-config
, boost
, libtool
, perlPackages
, pythonBindings ? true
, tclBindings ? true
, perlBindings ? true
}:
stdenv.mkDerivation rec {
pname = "hamlib";
version = "4.2";
src = fetchurl {
url = "mirror://sourceforge/${pname}/${pname}-${version}.tar.gz";
sha256 = "1m8gb20i8ga6ndnnw187ry1h4z8wx27v1hl7c610r6ky60pv4072";
};
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 ];
homepage = "http://hamlib.sourceforge.net";
maintainers = with maintainers; [ relrod ];
platforms = with platforms; unix;
};
}

View File

@ -1,5 +1,22 @@
{lib, stdenv, fetchurl, perl, python2, swig, gd, libxml2, tcl, libusb-compat-0_1, pkg-config,
boost, libtool, perlPackages }:
{ lib
, stdenv
, fetchurl
, perl
, swig
, gd
, ncurses
, python3
, libxml2
, tcl
, libusb-compat-0_1
, pkg-config
, boost
, libtool
, perlPackages
, pythonBindings ? true
, tclBindings ? true
, perlBindings ? true
}:
stdenv.mkDerivation rec {
pname = "hamlib";
@ -10,13 +27,26 @@ stdenv.mkDerivation rec {
sha256 = "10788mgrhbc57zpzakcxv5aqnr2819pcshml6fbh8zvnkja562y9";
};
buildInputs = [ perl perlPackages.ExtUtilsMakeMaker python2 swig gd libxml2
tcl libusb-compat-0_1 pkg-config boost libtool ];
nativeBuildInputs = [
swig
pkg-config
libtool
];
configureFlags = [ "--with-perl-binding" "--with-python-binding"
"--with-tcl-binding" "--with-rigmatrix" ];
buildInputs = [
gd
libxml2
libusb-compat-0_1
boost
] ++ lib.optionals pythonBindings [ python3 ncurses ]
++ lib.optionals tclBindings [ tcl ]
++ lib.optionals perlBindings [ perl perlPackages.ExtUtilsMakeMaker ];
meta = {
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
@ -26,9 +56,9 @@ stdenv.mkDerivation rec {
which lets one control a radio transceiver or receiver, either from
command line interface or in a text-oriented interactive interface.
'';
license = with lib.licenses; [ gpl2Plus lgpl2Plus ];
license = with licenses; [ gpl2Plus lgpl2Plus ];
homepage = "http://hamlib.sourceforge.net";
maintainers = with lib.maintainers; [ relrod ];
platforms = with lib.platforms; unix;
maintainers = with maintainers; [ relrod ];
platforms = with platforms; unix;
};
}

View File

@ -5509,7 +5509,9 @@ in
gpp = callPackage ../development/tools/gpp { };
gpredict = callPackage ../applications/science/astronomy/gpredict { };
gpredict = callPackage ../applications/science/astronomy/gpredict {
hamlib = hamlib_4;
};
gptfdisk = callPackage ../tools/system/gptfdisk { };
@ -15762,7 +15764,9 @@ in
gwenhywfar = callPackage ../development/libraries/aqbanking/gwenhywfar.nix { };
hamlib = callPackage ../development/libraries/hamlib { };
hamlib = hamlib_3;
hamlib_3 = callPackage ../development/libraries/hamlib { };
hamlib_4 = callPackage ../development/libraries/hamlib/4.nix { };
heimdal = callPackage ../development/libraries/kerberos/heimdal.nix {
inherit (darwin.apple_sdk.frameworks) CoreFoundation Security SystemConfiguration;
@ -23517,7 +23521,9 @@ in
python3Packages = python37Packages;
};
cqrlog = callPackage ../applications/radio/cqrlog { };
cqrlog = callPackage ../applications/radio/cqrlog {
hamlib = hamlib_4;
};
crun = callPackage ../applications/virtualization/crun {};
@ -23596,7 +23602,9 @@ in
inherit (pkgs.gnome2) libart_lgpl libgnomeui;
};
direwolf = callPackage ../applications/radio/direwolf { };
direwolf = callPackage ../applications/radio/direwolf {
hamlib = hamlib_4;
};
dirt = callPackage ../applications/audio/dirt {};
@ -23928,7 +23936,9 @@ in
flexget = callPackage ../applications/networking/flexget { };
fldigi = callPackage ../applications/radio/fldigi { };
fldigi = callPackage ../applications/radio/fldigi {
hamlib = hamlib_4;
};
flink = callPackage ../applications/networking/cluster/flink { };