nixpkgs/pkgs/development/libraries/editline/default.nix

37 lines
1.0 KiB
Nix
Raw Normal View History

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