2018-12-26 13:16:25 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchpatch, autoreconfHook }:
|
2018-03-28 00:51:02 +02:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
name = "editline-${version}";
|
2018-09-19 23:55:50 +02:00
|
|
|
version = "1.16.0";
|
2018-03-28 00:51:02 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "troglobit";
|
|
|
|
repo = "editline";
|
|
|
|
rev = version;
|
2018-09-19 23:55:50 +02:00
|
|
|
sha256 = "0a751dp34mk9hwv59ss447csknpm5i5cgd607m3fqf24rszyhbf2";
|
2018-03-28 00:51:02 +02:00
|
|
|
};
|
|
|
|
|
2018-12-26 13:16:25 +01:00
|
|
|
patches = [
|
|
|
|
# will be in 1.17.0
|
|
|
|
(fetchpatch {
|
|
|
|
name = "redisplay-clear-screen.patch";
|
|
|
|
url = "https://github.com/troglobit/editline/commit/a4b67d226829a55bc8501f36708d5e104a52fbe4.patch";
|
|
|
|
sha256 = "0dbgdqxa4x9wgr9kx89ql74np4qq6fzdbph9j9c65ns3gnaanjkw";
|
|
|
|
})
|
|
|
|
];
|
|
|
|
|
2018-03-28 00:51:02 +02:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
2018-10-29 12:49:13 +01:00
|
|
|
outputs = [ "out" "dev" "man" "doc" ];
|
2018-03-28 00:51:02 +02:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = http://troglobit.com/editline.html;
|
|
|
|
description = "A readline() replacement for UNIX without termcap (ncurses)";
|
|
|
|
license = licenses.bsdOriginal;
|
|
|
|
maintainers = with maintainers; [ dtzWill ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|