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