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.nix34
1 files changed, 34 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..ec6e489f2845
--- /dev/null
+++ b/nixpkgs/pkgs/development/libraries/libvterm-neovim/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, stdenv
+, fetchFromGitHub
+, perl
+, libtool
+}:
+
+stdenv.mkDerivation {
+  pname = "libvterm-neovim";
+  # Releases are not tagged, look at commit history to find latest release
+  version = "0.1.3";
+
+  src = fetchFromGitHub {
+    owner = "neovim";
+    repo = "libvterm";
+    rev = "65dbda3ed214f036ee799d18b2e693a833a0e591";
+    sha256 = "0r6yimzbkgrsi9aaxwvxahai2lzgjd1ysblr6m6by5w459853q3n";
+  };
+
+  nativeBuildInputs = [ perl libtool ];
+
+  makeFlags = [ "PREFIX=$(out)" ]
+    ++ lib.optional stdenv.isDarwin "LIBTOOL=${libtool}/bin/libtool";
+
+  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;
+  };
+}