2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, ncurses }:
|
2019-07-30 06:39:13 +01:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "mtm";
|
2019-10-12 10:20:00 +01:00
|
|
|
version = "1.2.0";
|
2019-07-30 06:39:13 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "deadpixi";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-10-12 10:20:00 +01:00
|
|
|
sha256 = "0b2arkmbmabxmrqxlpvvvhll2qx0xgj7r4r6p0ymnm9p70idris4";
|
2019-07-30 06:39:13 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ ncurses ];
|
|
|
|
|
2019-10-12 10:20:00 +01:00
|
|
|
preBuild = ''
|
|
|
|
substituteInPlace Makefile --replace "strip -s mtm" ""
|
|
|
|
'';
|
|
|
|
|
2019-07-30 06:39:13 +01:00
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
install -Dm755 -t $out/bin mtm
|
|
|
|
install -Dm644 -t $out/share/man/man1 mtm.1
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2019-07-30 06:39:13 +01:00
|
|
|
description = "Perhaps the smallest useful terminal multiplexer in the world";
|
|
|
|
homepage = "https://github.com/deadpixi/mtm";
|
|
|
|
license = licenses.gpl3Plus;
|
|
|
|
platforms = platforms.unix;
|
|
|
|
maintainers = [ maintainers.marsam ];
|
|
|
|
};
|
|
|
|
}
|