about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/libvterm-neovim
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/libraries/libvterm-neovim')
-rw-r--r--nixpkgs/pkgs/development/libraries/libvterm-neovim/default.nix35
1 files changed, 35 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/libraries/libvterm-neovim/default.nix b/nixpkgs/pkgs/development/libraries/libvterm-neovim/default.nix
new file mode 100644
index 000000000000..27ce41d20f62
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libvterm-neovim/default.nix
@@ -0,0 +1,35 @@
+{ lib
+, stdenv
+, fetchurl
+, perl
+, libtool
+}:
+
+stdenv.mkDerivation rec {
+  pname = "libvterm-neovim";
+  # Releases are not tagged, look at commit history to find latest release
+  version = "0.3.2";
+
+  src = fetchurl {
+    url = "https://www.leonerd.org.uk/code/libvterm/libvterm-${version}.tar.gz";
+    sha256 = "sha256-ketQiAafTm7atp4UxCEvbaAZLmVpWVbcBIAWoNq4vPY=";
+  };
+
+  nativeBuildInputs = [ perl libtool ];
+
+  makeFlags = [
+    "CC=${stdenv.cc.targetPrefix}cc"
+    "LIBTOOL=${libtool}/bin/libtool"
+    "PREFIX=$(out)"
+  ];
+
+  enableParallelBuilding = true;
+
+  meta = with lib; {
+    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;
+  };
+}