Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
50 lines
1000 B
Nix
50 lines
1000 B
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
ncurses,
|
|
}:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "mtm";
|
|
version = "1.2.1";
|
|
|
|
outputs = [
|
|
"out"
|
|
"terminfo"
|
|
];
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "deadpixi";
|
|
repo = "mtm";
|
|
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 = [ ];
|
|
mainProgram = "mtm";
|
|
};
|
|
}
|