2021-10-01 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2018-05-16 05:55:26 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, perl
|
|
|
|
, libtool
|
|
|
|
}:
|
|
|
|
|
2019-08-13 21:52:01 +00:00
|
|
|
stdenv.mkDerivation {
|
2019-04-22 10:54:23 +00:00
|
|
|
pname = "libvterm-neovim";
|
2020-01-14 12:23:37 +00:00
|
|
|
# Releases are not tagged, look at commit history to find latest release
|
|
|
|
version = "0.1.3";
|
2018-05-16 05:55:26 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "neovim";
|
|
|
|
repo = "libvterm";
|
2020-01-14 12:23:37 +00:00
|
|
|
rev = "65dbda3ed214f036ee799d18b2e693a833a0e591";
|
|
|
|
sha256 = "0r6yimzbkgrsi9aaxwvxahai2lzgjd1ysblr6m6by5w459853q3n";
|
2018-05-16 05:55:26 +00:00
|
|
|
};
|
|
|
|
|
2021-10-01 04:20:00 +00:00
|
|
|
nativeBuildInputs = [ perl libtool ];
|
2018-05-16 05:55:26 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ]
|
2021-01-21 17:00:13 +00:00
|
|
|
++ lib.optional stdenv.isDarwin "LIBTOOL=${libtool}/bin/libtool";
|
2018-05-16 05:55:26 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-01-21 17:00:13 +00:00
|
|
|
meta = with lib; {
|
2018-05-16 05:55:26 +00:00
|
|
|
description = "VT220/xterm/ECMA-48 terminal emulator library";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "http://www.leonerd.org.uk/code/libvterm/";
|
2018-05-16 05:55:26 +00:00
|
|
|
license = licenses.mit;
|
2019-09-16 08:21:22 +00:00
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
2018-05-16 05:55:26 +00:00
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|