2021-06-04 09:07:49 +00:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, nix-update-script, fetchpatch }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
|
|
|
pname = "editline";
|
2021-06-04 09:07:49 +00:00
|
|
|
version = "1.17.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "troglobit";
|
|
|
|
repo = "editline";
|
|
|
|
rev = version;
|
2021-06-04 09:07:49 +00:00
|
|
|
sha256 = "sha256-0FeDUVCUahbweH24nfaZwa7j7lSfZh1TnQK7KYqO+3g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
(fetchpatch {
|
2021-06-04 09:07:49 +00:00
|
|
|
name = "fix-for-home-end-in-tmux.patch";
|
|
|
|
url = "https://github.com/troglobit/editline/commit/265c1fb6a0b99bedb157dc7c320f2c9629136518.patch";
|
|
|
|
sha256 = "sha256-9fhQH0hT8BcykGzOUoT18HBtWjjoXnePSGDJQp8GH30=";
|
2020-04-24 23:36:52 +00:00
|
|
|
})
|
2024-01-25 14:12:00 +00:00
|
|
|
|
|
|
|
# Pending autoconf-2.72 upstream support:
|
|
|
|
# https://github.com/troglobit/editline/pull/64
|
|
|
|
(fetchpatch {
|
|
|
|
name = "autoconf-2.72.patch";
|
|
|
|
url = "https://github.com/troglobit/editline/commit/f444a316f5178b8e20fe31e7b2d979e651da077e.patch";
|
|
|
|
hash = "sha256-m3jExTkPvE+ZBwHzf/A+ugzzfbLmeWYn726l7Po7f10=";
|
|
|
|
})
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
configureFlags = [ (lib.enableFeature true "sigstop") ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
|
|
outputs = [ "out" "dev" "man" "doc" ];
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2021-06-04 09:07:49 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2021-06-04 09:07:49 +00:00
|
|
|
homepage = "https://troglobit.com/projects/editline/";
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Readline() replacement for UNIX without termcap (ncurses)";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.bsdOriginal;
|
2024-07-27 06:49:29 +00:00
|
|
|
maintainers = with maintainers; [ oxalica ];
|
2020-04-24 23:36:52 +00:00
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|