From 29f895426c21299a9827001cce4ed6d3d78c691d Mon Sep 17 00:00:00 2001 From: Rahul Gopinath Date: Fri, 15 Apr 2016 13:11:46 -0500 Subject: vis: init vis at 0.2x (nightly) Vis editor is a vim like editor. This commit provides the initial package for vis (nightly) --- pkgs/applications/editors/vis/default.nix | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 pkgs/applications/editors/vis/default.nix (limited to 'pkgs/applications') diff --git a/pkgs/applications/editors/vis/default.nix b/pkgs/applications/editors/vis/default.nix new file mode 100644 index 000000000000..8c7cf73f4320 --- /dev/null +++ b/pkgs/applications/editors/vis/default.nix @@ -0,0 +1,43 @@ +{ stdenv, fetchFromGitHub, unzip, pkgconfig, makeWrapper, ncurses, libtermkey, lpeg, lua }: + +stdenv.mkDerivation rec { + name = "vis-nightly-${version}"; + version = "2016-04-15"; + + src = fetchFromGitHub { + sha256 = "0a4gpwniy5r9dpfq51fxjxxnxavdjv8x76w9bbjnbnh8n63p3sj7"; + rev = "472c559a273d3c7b0f5ee92260c5544bc3d74576"; + repo = "vis"; + owner = "martanne"; + }; + + nativeBuildInputs = [ makeWrapper ]; + + buildInputs = [ + unzip + pkgconfig + ncurses + libtermkey + lua + lpeg + ]; + + LUA_CPATH="${lpeg}/lib/lua/${lua.luaversion}/?.so;"; + LUA_PATH="${lpeg}/share/lua/${lua.luaversion}/?.lua"; + + postInstall = '' + echo wrapping $out/bin/vis with runtime environment + wrapProgram $out/bin/vis \ + --prefix LUA_CPATH : "${lpeg}/lib/lua/${lua.luaversion}/?.so" \ + --prefix LUA_PATH : "${lpeg}/share/lua/${lua.luaversion}/?.lua" \ + --prefix VIS_PATH : "$out/share/vis" + ''; + + meta = { + description = "A vim like editor"; + homepage = http://github.com/martanne/vis; + license = stdenv.lib.licenses.isc; + maintainers = [ stdenv.lib.maintainers.vrthra ]; + }; +} + -- cgit 1.4.1