2021-01-15 10:19:50 +01:00
|
|
|
{ lib, stdenv, fetchurl,
|
|
|
|
openssl,
|
2015-10-31 02:23:54 +01:00
|
|
|
} :
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2021-05-24 21:27:29 +02:00
|
|
|
version = "20210328";
|
2019-08-15 14:41:18 +02:00
|
|
|
pname = "mbuffer";
|
2015-10-31 02:23:54 +01:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-10-31 22:57:19 +01:00
|
|
|
url = "http://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz";
|
2021-05-24 21:27:29 +02:00
|
|
|
sha256 = "sha256-UbW42EiJkaVf4d/OkBMPnke8HOKGugO09ijAS3hP3F0=";
|
2015-10-31 02:23:54 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ openssl ];
|
2020-08-31 10:45:53 +02: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 10:19:50 +01:00
|
|
|
preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
|
2020-08-31 10:45:53 +02:00
|
|
|
substituteInPlace configure --replace "OBJDUMP=$ac_cv_path_OBJDUMP" 'OBJDUMP=''${OBJDUMP}'
|
|
|
|
'';
|
2019-10-23 17:45:45 +02:00
|
|
|
doCheck = true;
|
2015-10-31 02:23:54 +01:00
|
|
|
|
|
|
|
meta = {
|
2021-06-04 11:17:44 +02:00
|
|
|
homepage = "https://www.maier-komor.de/mbuffer.html";
|
2017-08-27 16:15:39 +02:00
|
|
|
description = "A tool for buffering data streams with a large set of unique features";
|
2021-06-04 11:17:44 +02:00
|
|
|
license = lib.licenses.gpl3Only;
|
2021-01-15 10:19:50 +01:00
|
|
|
maintainers = with lib.maintainers; [ tokudan ];
|
|
|
|
platforms = lib.platforms.linux; # Maybe other non-darwin Unix
|
2015-10-31 02:23:54 +01:00
|
|
|
};
|
|
|
|
}
|