mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-14 08:54:46 +00:00
fe87f6ee53
This patch also moves to use the github fork of multitail, which seems to be the maintained version of the project now. This update removes the need for patches. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
33 lines
767 B
Nix
33 lines
767 B
Nix
{ lib, stdenv, fetchFromGitHub, fetchpatch, ncurses, pkg-config }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "6.5.2";
|
|
pname = "multitail";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "halturin";
|
|
repo = pname;
|
|
rev = "v${version}";
|
|
sha256 = "sha256-DMYcoHOaX4bToDE8qpXmg5tbTYGkiwtPJd0/qy4uD54=";
|
|
};
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
makeFlags = lib.optionals stdenv.isDarwin [ "-f" "makefile.macosx" ];
|
|
|
|
installPhase = ''
|
|
mkdir -p $out/bin
|
|
cp multitail $out/bin
|
|
'';
|
|
|
|
meta = {
|
|
homepage = "https://github.com/halturin/multitail";
|
|
description = "tail on Steroids";
|
|
maintainers = with lib.maintainers; [ matthiasbeyer ];
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.gpl2Plus;
|
|
};
|
|
}
|