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