blob: c142c1f290369236f6119316f5d78359adfb29f7 (
plain)
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
33
34
35
36
37
|
{ lib, stdenv, fetchFromGitHub, ncurses }:
stdenv.mkDerivation rec {
pname = "mtm";
version = "1.2.1";
outputs = [ "out" "terminfo" ];
src = fetchFromGitHub {
owner = "deadpixi";
repo = pname;
rev = version;
sha256 = "0gibrvah059z37jvn1qs4b6kvd4ivk2mfihmcpgx1vz6yg70zghv";
};
buildInputs = [ ncurses ];
makeFlags = [ "DESTDIR=${placeholder "out"}" "MANDIR=${placeholder "out"}/share/man/man1" ];
preInstall = ''
mkdir -p $out/bin/ $out/share/man/man1
'';
postInstall = ''
mkdir -p $terminfo/share/terminfo $out/nix-support
tic -x -o $terminfo/share/terminfo mtm.ti
echo "$terminfo" >> $out/nix-support/propagated-user-env-packages
'';
meta = with 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 ];
};
}
|