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