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
|
2023-02-16 17:41:37 +00:00
|
|
|
version = "0.3.1";
|
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";
|
2023-02-16 17:41:37 +00:00
|
|
|
sha256 = "sha256-JaitnBVIU2jf0Kip3KGuyP6lwn2j+nTsUY1dN4fww5c=";
|
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
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
makeFlags = [
|
|
|
|
"CC=${stdenv.cc.targetPrefix}cc"
|
|
|
|
"LIBTOOL=${libtool}/bin/libtool"
|
|
|
|
"PREFIX=$(out)"
|
|
|
|
];
|
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;
|
|
|
|
};
|
|
|
|
}
|