nixpkgs/pkgs/by-name/mt/mtm/package.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

39 lines
971 B
Nix
Raw Normal View History

2024-11-06 18:58:59 +00:00
{ lib, stdenv, fetchFromGitHub, ncurses }:
2019-07-30 05:39:13 +00:00
stdenv.mkDerivation rec {
pname = "mtm";
version = "1.2.1";
outputs = [ "out" "terminfo" ];
2019-07-30 05:39:13 +00:00
src = fetchFromGitHub {
owner = "deadpixi";
repo = pname;
rev = version;
sha256 = "0gibrvah059z37jvn1qs4b6kvd4ivk2mfihmcpgx1vz6yg70zghv";
2019-07-30 05:39:13 +00:00
};
2024-11-06 18:58:59 +00:00
buildInputs = [ ncurses ];
2019-07-30 05:39:13 +00:00
makeFlags = [ "DESTDIR=${placeholder "out"}" "MANDIR=${placeholder "out"}/share/man/man1" ];
2019-07-30 05:39:13 +00:00
preInstall = ''
mkdir -p $out/bin/ $out/share/man/man1
'';
2019-07-30 05:39:13 +00:00
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
2019-07-30 05:39:13 +00:00
'';
meta = with lib; {
2019-07-30 05:39:13 +00:00
description = "Perhaps the smallest useful terminal multiplexer in the world";
homepage = "https://github.com/deadpixi/mtm";
license = licenses.gpl3Plus;
platforms = platforms.unix;
2024-04-24 04:20:00 +00:00
maintainers = [ ];
2023-11-27 01:17:53 +00:00
mainProgram = "mtm";
2019-07-30 05:39:13 +00:00
};
}