1 { lib, stdenv, fetchFromGitHub, ncurses }:
3 stdenv.mkDerivation rec {
7 outputs = [ "out" "terminfo" ];
9 src = fetchFromGitHub {
13 sha256 = "0gibrvah059z37jvn1qs4b6kvd4ivk2mfihmcpgx1vz6yg70zghv";
16 buildInputs = [ ncurses ];
18 makeFlags = [ "DESTDIR=${placeholder "out"}" "MANDIR=${placeholder "out"}/share/man/man1" ];
21 mkdir -p $out/bin/ $out/share/man/man1
25 mkdir -p $terminfo/share/terminfo $out/nix-support
26 tic -x -o $terminfo/share/terminfo mtm.ti
27 echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
31 description = "Perhaps the smallest useful terminal multiplexer in the world";
32 homepage = "https://github.com/deadpixi/mtm";
33 license = licenses.gpl3Plus;
34 platforms = platforms.unix;