nixpkgs/pkgs/tools/misc/mbuffer/default.nix

33 lines
1.1 KiB
Nix
Raw Normal View History

2021-01-15 09:19:50 +00:00
{ lib, stdenv, fetchurl,
openssl,
2015-10-31 01:23:54 +00:00
} :
stdenv.mkDerivation rec {
2021-02-12 19:04:10 +00:00
version = "20210209";
pname = "mbuffer";
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-02-12 19:04:10 +00:00
sha256 = "sha256-6B8niOJiHyD4SBge8ssZrG0SMoaRQ38wFXSyU/2Jmgw=";
2015-10-31 01:23:54 +00:00
};
buildInputs = [ openssl ];
# 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) ''
substituteInPlace configure --replace "OBJDUMP=$ac_cv_path_OBJDUMP" 'OBJDUMP=''${OBJDUMP}'
'';
doCheck = true;
2015-10-31 01:23:54 +00:00
meta = {
homepage = "http://www.maier-komor.de/mbuffer.html";
2017-08-27 15:15:39 +01:00
description = "A tool for buffering data streams with a large set of unique features";
2021-01-15 09:19:50 +00:00
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ tokudan ];
platforms = lib.platforms.linux; # Maybe other non-darwin Unix
2015-10-31 01:23:54 +00:00
};
}