mbuffer: 20210328 -> 20211018

This commit is contained in:
Fabian Affolter 2021-11-28 10:59:46 +01:00
parent 3e610e1d39
commit 0050284daa

View file

@ -1,32 +1,40 @@
{ lib, stdenv, fetchurl, { lib
openssl, , stdenv
} : , fetchurl
, openssl
, which
}:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "20210328";
pname = "mbuffer"; pname = "mbuffer";
version = "20211018";
src = fetchurl { src = fetchurl {
url = "http://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz"; url = "http://www.maier-komor.de/software/mbuffer/mbuffer-${version}.tgz";
sha256 = "sha256-UbW42EiJkaVf4d/OkBMPnke8HOKGugO09ijAS3hP3F0="; sha256 = "sha256-4kDB5OSsFMKL6MZg7EfUTOFrHo7JKqkHrRMAT/1dtuM=";
}; };
buildInputs = [ openssl ]; buildInputs = [
openssl
which
];
# The mbuffer configure scripts fails to recognize the correct # The mbuffer configure scripts fails to recognize the correct
# objdump binary during cross-building for foreign platforms. # objdump binary during cross-building for foreign platforms.
# The correct objdump is exposed via the environment variable # The correct objdump is exposed via the environment variable
# $OBJDUMP, which should be used in such cases. # $OBJDUMP, which should be used in such cases.
preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) '' preConfigure = lib.optionalString (stdenv.hostPlatform != stdenv.buildPlatform) ''
substituteInPlace configure --replace "OBJDUMP=$ac_cv_path_OBJDUMP" 'OBJDUMP=''${OBJDUMP}' substituteInPlace configure \
--replace "OBJDUMP=$ac_cv_path_OBJDUMP" 'OBJDUMP=''${OBJDUMP}'
''; '';
doCheck = true; doCheck = true;
meta = { meta = with lib; {
homepage = "https://www.maier-komor.de/mbuffer.html";
description = "A tool for buffering data streams with a large set of unique features"; description = "A tool for buffering data streams with a large set of unique features";
license = lib.licenses.gpl3Only; homepage = "https://www.maier-komor.de/mbuffer.html";
maintainers = with lib.maintainers; [ tokudan ]; license = licenses.gpl3Only;
platforms = lib.platforms.linux; # Maybe other non-darwin Unix maintainers = with maintainers; [ tokudan ];
platforms = platforms.linux; # Maybe other non-darwin Unix
}; };
} }