2021-10-04 12:37:57 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-10-06 18:32:54 +00:00
|
|
|
, fetchurl
|
2020-04-24 23:36:52 +00:00
|
|
|
, perl
|
|
|
|
, libtool
|
|
|
|
}:
|
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "libvterm-neovim";
|
|
|
|
# Releases are not tagged, look at commit history to find latest release
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.3";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-10-06 18:32:54 +00:00
|
|
|
src = fetchurl {
|
|
|
|
url = "https://www.leonerd.org.uk/code/libvterm/libvterm-${version}.tar.gz";
|
|
|
|
sha256 = "sha256-YesNZijFK98CkA39RGiqhqGnElIourimcyiYGIdIM1g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-10-04 12:37:57 +00:00
|
|
|
nativeBuildInputs = [ perl libtool ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "PREFIX=$(out)" ]
|
2021-02-05 17:12:51 +00:00
|
|
|
++ lib.optional stdenv.isDarwin "LIBTOOL=${libtool}/bin/libtool";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
enableParallelBuilding = true;
|
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
description = "VT220/xterm/ECMA-48 terminal emulator library";
|
|
|
|
homepage = "http://www.leonerd.org.uk/code/libvterm/";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ rvolosatovs ];
|
|
|
|
platforms = platforms.unix;
|
|
|
|
};
|
|
|
|
}
|