2021-05-29 15:25:45 +08:00
|
|
|
{ lib, stdenv, fetchFromGitHub, autoreconfHook, nix-update-script, fetchpatch }:
|
2018-03-27 17:51:02 -05:00
|
|
|
|
|
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "editline";
|
2021-05-29 15:25:45 +08:00
|
|
|
version = "1.17.1";
|
2018-03-27 17:51:02 -05:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
|
owner = "troglobit";
|
|
|
|
|
repo = "editline";
|
|
|
|
|
rev = version;
|
2021-05-29 15:25:45 +08:00
|
|
|
sha256 = "sha256-0FeDUVCUahbweH24nfaZwa7j7lSfZh1TnQK7KYqO+3g=";
|
2018-03-27 17:51:02 -05:00
|
|
|
};
|
|
|
|
|
|
2020-01-15 09:49:56 -06:00
|
|
|
patches = [
|
2021-05-29 15:01:43 +08:00
|
|
|
(fetchpatch {
|
|
|
|
|
name = "fix-for-home-end-in-tmux.patch";
|
|
|
|
|
url = "https://github.com/troglobit/editline/commit/265c1fb6a0b99bedb157dc7c320f2c9629136518.patch";
|
|
|
|
|
sha256 = "sha256-9fhQH0hT8BcykGzOUoT18HBtWjjoXnePSGDJQp8GH30=";
|
|
|
|
|
})
|
2020-01-15 09:49:56 -06:00
|
|
|
];
|
|
|
|
|
|
2018-03-27 17:51:02 -05:00
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
|
|
2018-10-29 12:49:13 +01:00
|
|
|
outputs = [ "out" "dev" "man" "doc" ];
|
2018-03-27 17:51:02 -05:00
|
|
|
|
2021-05-29 15:25:45 +08:00
|
|
|
passthru.updateScript = nix-update-script {
|
|
|
|
|
attrPath = pname;
|
|
|
|
|
};
|
|
|
|
|
|
2021-01-22 00:00:13 +07:00
|
|
|
meta = with lib; {
|
2021-06-01 15:42:37 +02:00
|
|
|
homepage = "https://troglobit.com/projects/editline/";
|
2018-03-27 17:51:02 -05:00
|
|
|
description = "A readline() replacement for UNIX without termcap (ncurses)";
|
|
|
|
|
license = licenses.bsdOriginal;
|
2021-05-29 15:25:45 +08:00
|
|
|
maintainers = with maintainers; [ dtzWill oxalica ];
|
2018-03-27 17:51:02 -05:00
|
|
|
platforms = platforms.all;
|
|
|
|
|
};
|
|
|
|
|
}
|