depot/third_party/nixpkgs/pkgs/tools/misc/mtm/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

36 lines
812 B
Nix

{ stdenv, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec {
pname = "mtm";
version = "1.2.0";
src = fetchFromGitHub {
owner = "deadpixi";
repo = pname;
rev = version;
sha256 = "0b2arkmbmabxmrqxlpvvvhll2qx0xgj7r4r6p0ymnm9p70idris4";
};
buildInputs = [ ncurses ];
preBuild = ''
substituteInPlace Makefile --replace "strip -s mtm" ""
'';
installPhase = ''
runHook preInstall
install -Dm755 -t $out/bin mtm
install -Dm644 -t $out/share/man/man1 mtm.1
runHook postInstall
'';
meta = with stdenv.lib; {
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 ];
};
}