2020-04-24 23:36:52 +00:00
|
|
|
{ stdenv, fetchurl,
|
|
|
|
openssl,
|
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2020-05-29 06:06:01 +00:00
|
|
|
version = "20200505";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mbuffer";
|
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz";
|
2020-05-29 06:06:01 +00:00
|
|
|
sha256 = "02qzy3appah0llg6aa71isl2a5nc93bkzy5r4d682lcy2j1n216c";
|
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.
|
|
|
|
preConfigure = stdenv.lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
|
|
|
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";
|
|
|
|
license = stdenv.lib.licenses.gpl3;
|
|
|
|
maintainers = with stdenv.lib.maintainers; [ tokudan ];
|
|
|
|
platforms = stdenv.lib.platforms.linux; # Maybe other non-darwin Unix
|
|
|
|
};
|
|
|
|
}
|