1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-17 10:24:15 +00:00
nixpkgs/pkgs/development/libraries/libmodbus/default.nix
R. RyanTM 28a967191d libmodbus: 3.1.4 -> 3.1.6
Semi-automatic update generated by
https://github.com/ryantm/nixpkgs-update tools. This update was made
based on information from
https://repology.org/metapackage/libmodbus/versions
2019-08-19 12:14:32 -07:00

29 lines
945 B
Nix

{ stdenv, fetchurl }:
stdenv.mkDerivation rec {
name = "libmodbus-3.1.6";
src = fetchurl {
url = "http://libmodbus.org/releases/${name}.tar.gz";
sha256 = "05kwz0n5gn9m33cflzv87lz3zp502yp8fpfzbx70knvfl6agmnfp";
};
configureFlags = [
# when cross-compiling we assume that the host system will return a valid
# pointer for calls to malloc(0) or realloc(0)
# https://www.uclibc.org/FAQ.html#gnu_malloc
# https://www.gnu.org/software/autoconf/manual/autoconf.html#index-AC_005fFUNC_005fMALLOC-454
# the upstream source should be patched to avoid needing this
"ac_cv_func_malloc_0_nonnull=yes"
"ac_cv_func_realloc_0_nonnull=yes"
];
meta = with stdenv.lib; {
description = "Library to send/receive data according to the Modbus protocol";
homepage = https://libmodbus.org/;
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = [ maintainers.bjornfor ];
};
}