2021-01-15 22:18:51 +00:00
|
|
|
{ lib, stdenv, fetchurl,
|
|
|
|
openssl,
|
2020-04-24 23:36:52 +00:00
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-28 09:39:13 +00:00
|
|
|
version = "20210328";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mbuffer";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz";
|
2021-05-28 09:39:13 +00:00
|
|
|
sha256 = "sha256-UbW42EiJkaVf4d/OkBMPnke8HOKGugO09ijAS3hP3F0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
|
|
|
# The mbuffer configure scripts fails to recognize the correct
|
|
|
|
# objdump binary during cross-building for foreign platforms.
|
|
|
|
# The correct objdump is exposed via the environment variable
|
|
|
|
# $OBJDUMP, which should be used in such cases.
|
2021-01-15 22:18:51 +00:00
|
|
|
preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
2020-09-25 04:45:31 +00:00
|
|
|
substituteInPlace configure --replace "OBJDUMP=$ac_cv_path_OBJDUMP" 'OBJDUMP=''${OBJDUMP}'
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
doCheck = true;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://www.maier-komor.de/mbuffer.html";
|
|
|
|
description = "A tool for buffering data streams with a large set of unique features";
|
2021-01-15 22:18:51 +00:00
|
|
|
license = lib.licenses.gpl3;
|
|
|
|
maintainers = with lib.maintainers; [ tokudan ];
|
|
|
|
platforms = lib.platforms.linux; # Maybe other non-darwin Unix
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|