diff options
author | Mario Rodas <marsam@users.noreply.github.com> | 2019-07-30 00:39:13 -0500 |
---|---|---|
committer | Mario Rodas <marsam@users.noreply.github.com> | 2019-07-30 00:39:13 -0500 |
commit | 070fea146c7a5af8463f975a529fcf140ecc917e (patch) | |
tree | 70fa3482dd033eba1599a82420e8becd03cc6889 /pkgs/tools/misc/mtm | |
parent | 29d912eb825cad890442667b2e8ce77c78bb6ed3 (diff) |
mtm: init at 1.0.1
Diffstat (limited to 'pkgs/tools/misc/mtm')
-rw-r--r-- | pkgs/tools/misc/mtm/default.nix | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/tools/misc/mtm/default.nix b/pkgs/tools/misc/mtm/default.nix new file mode 100644 index 0000000000000..d0bf3521c7cf8 --- /dev/null +++ b/pkgs/tools/misc/mtm/default.nix @@ -0,0 +1,32 @@ +{ stdenv, fetchFromGitHub, ncurses }: + +stdenv.mkDerivation rec { + pname = "mtm"; + version = "1.0.1"; + + src = fetchFromGitHub { + owner = "deadpixi"; + repo = pname; + rev = version; + sha256 = "0q23z1dfjz3qkmxqm0d8sg81gn6w1j2n2j6c9hk1kk7iv21v1zb0"; + }; + + buildInputs = [ ncurses ]; + + 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 ]; + }; +} |