about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/misc/mtm/default.nix
blob: b518a159e91358c3722061e5312019d6f7d1cc4c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ stdenv, fetchFromGitHub, ncurses }:

stdenv.mkDerivation rec {
  pname = "mtm";
  version = "1.1.0";

  src = fetchFromGitHub {
    owner = "deadpixi";
    repo = pname;
    rev = version;
    sha256 = "0k9xachd9wnyhj8sh4yninckgwm3a7zdxnn490x65ikn4vqb7w8x";
  };

  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 ];
  };
}