nixpkgs/pkgs/applications/editors/zile/default.nix

81 lines
2.6 KiB
Nix
Raw Normal View History

2021-03-27 16:04:59 +00:00
{ lib
, stdenv
, fetchurl
, boehmgc
, glib
, help2man
, libgee
, ncurses
, perl
, pkg-config
, vala
}:
stdenv.mkDerivation rec {
2021-03-27 16:04:59 +00:00
pname = "zile";
version = "2.6.2";
src = fetchurl {
2021-03-27 16:04:59 +00:00
url = "mirror://gnu/zile/${pname}-${version}.tar.gz";
hash = "sha256-d+t9r/PJi9yI2qGsBA3MynK4HcMvwxZuB53Xpj5Cx0E=";
};
2021-03-27 16:04:59 +00:00
buildInputs = [
boehmgc
glib
libgee
ncurses
];
nativeBuildInputs = [
perl
pkg-config
vala
]
# `help2man' wants to run Zile, which won't work when the
# newly-produced binary can't be run at build-time.
++ lib.optional (stdenv.hostPlatform == stdenv.buildPlatform) help2man;
# Tests can't be run because most of them rely on the ability to
# fiddle with the terminal.
doCheck = false;
# XXX: Work around cross-compilation-unfriendly `gl_FUNC_FSTATAT' macro.
2017-10-07 23:08:52 +00:00
gl_cv_func_fstatat_zero_flag="yes";
meta = with lib; {
2021-03-27 16:04:59 +00:00
homepage = "https://www.gnu.org/software/zile/";
description = "Zile Implements Lua Editors";
longDescription = ''
2021-03-27 16:04:59 +00:00
GNU Zile is a text editor development kit, so that you can (relatively)
quickly develop your own ideal text editor without reinventing the wheel
for many of the common algorithms and data-structures needed to do so.
2021-03-27 16:04:59 +00:00
It comes with an example implementation of a lightweight Emacs clone,
called Zemacs. Every Emacs user should feel at home with Zemacs. Zemacs is
aimed at small footprint systems and quick editing sessions (it starts up
and shuts down instantly).
2021-03-27 16:04:59 +00:00
More editors implemented over the Zile frameworks are forthcoming as the
data-structures and interfaces improve: Zz an emacs inspired editor using
Lua as an extension language; Zee a minimalist non-modal editor; Zi a
lightweight vi clone; and more...
2021-03-27 16:04:59 +00:00
Zile is a collection of algorithms and data-structures that currently
support all basic Emacs-like editing features: it is 8-bit clean (though
Unicode support is not ready yet), and the number of editing buffers and
windows is only limited by available memoryand screen space
respectively. Registers, minibuffer completion and auto fill are
available.
2021-03-27 16:04:59 +00:00
Zemacs implements a subset of Emacs with identical function and variable
names, continuing the spirit of the earlier Zile editor implemented in C.
GNU Zile, which is a lightweight Emacs clone. Zile is short for Zile Is
Lossy Emacs. Zile has been written to be as similar as possible to Emacs;
every Emacs user should feel at home.
'';
license = licenses.gpl3Plus;
maintainers = with maintainers; [ pSub AndersonTorres ];
platforms = platforms.unix;
};
}