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

41 lines
1.1 KiB
Nix
Raw Normal View History

{ lib, stdenv, fetchurl, fetchpatch, ncurses, pkg-config }:
2013-03-31 13:40:11 -04:00
2014-08-08 08:50:51 -04:00
stdenv.mkDerivation rec {
2019-11-28 04:47:43 -05:00
version = "6.5.0";
pname = "multitail";
2013-03-31 13:40:11 -04:00
src = fetchurl {
url = "https://www.vanheusden.com/multitail/${pname}-${version}.tgz";
2019-11-28 04:47:43 -05:00
sha256 = "1vd9vdxyxsccl64ilx542ya5vlw2bpg6gnkq1x8cfqy6vxvmx7dj";
2013-03-31 13:40:11 -04:00
};
patches = [
# Fix pending upstream inclusion for ncurses-6.3:
# https://github.com/halturin/multitail/pull/4
(fetchpatch {
name = "ncurses-6.3.patch";
url = "https://github.com/halturin/multitail/commit/d7d10f3bce261074c116eba9f924b61f43777662.patch";
sha256 = "0kyp9l6v92mz6d3h34j11gs5kh3sf2nv76mygqfxb800vd8r0cgg";
})
];
nativeBuildInputs = [ pkg-config ];
buildInputs = [ ncurses ];
2013-03-31 13:40:11 -04:00
2021-01-15 04:19:50 -05:00
makeFlags = lib.optionals stdenv.isDarwin [ "-f" "makefile.macosx" ];
2014-04-15 04:33:26 -04:00
2013-03-31 13:40:11 -04:00
installPhase = ''
mkdir -p $out/bin
2013-03-31 13:40:11 -04:00
cp multitail $out/bin
'';
meta = {
homepage = "https://github.com/halturin/multitail";
2013-03-31 13:40:11 -04:00
description = "tail on Steroids";
2021-01-15 04:19:50 -05:00
maintainers = with lib.maintainers; [ matthiasbeyer ];
platforms = lib.platforms.unix;
license = lib.licenses.gpl2Plus;
2013-03-31 13:40:11 -04:00
};
}