47 lines
841 B
Nix
47 lines
841 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ncurses,
|
|
pkg-config,
|
|
cmake,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
version = "7.1.5";
|
|
pname = "multitail";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "folkertvanheusden";
|
|
repo = "multitail";
|
|
rev = version;
|
|
hash = "sha256-c9NlQLgHngNBbADZ6/legWFaKHJAQR/LZIfh8bJoc4Y=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
pkg-config
|
|
cmake
|
|
];
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
installPhase = ''
|
|
runHook preInstall
|
|
|
|
install -Dm755 multitail -t $out/bin/
|
|
|
|
runHook postInstall
|
|
'';
|
|
|
|
hardeningDisable = [ "format" ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/folkertvanheusden/multitail";
|
|
description = "tail on steroids";
|
|
maintainers = with lib.maintainers; [ matthiasbeyer ];
|
|
platforms = lib.platforms.unix;
|
|
license = lib.licenses.asl20;
|
|
mainProgram = "multitail";
|
|
};
|
|
}
|