Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
57 lines
1.3 KiB
Nix
57 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
stdenv,
|
|
fetchFromGitHub,
|
|
autoreconfHook,
|
|
nix-update-script,
|
|
ncurses ? null,
|
|
|
|
# Enable `termcap` (`ncurses`) support.
|
|
enableTermcap ? false,
|
|
}:
|
|
|
|
assert lib.assertMsg (
|
|
enableTermcap -> ncurses != null
|
|
) "`ncurses` must be provided when `enableTermcap` is enabled";
|
|
|
|
stdenv.mkDerivation (finalAttrs: {
|
|
pname = "editline";
|
|
version = "1.17.1-unstable-2025-05-24";
|
|
src = fetchFromGitHub {
|
|
owner = "troglobit";
|
|
repo = "editline";
|
|
rev = "f735e4d1d566cac3caa4a5e248179d07f0babefd";
|
|
sha256 = "sha256-MUXxSmhpQd8CZdGGC6Ln9eci85E+GBhlNk28VHUvjaU=";
|
|
};
|
|
|
|
configureFlags = [
|
|
# Enable SIGSTOP (Ctrl-Z) behavior.
|
|
(lib.enableFeature true "sigstop")
|
|
# Enable ANSI arrow keys.
|
|
(lib.enableFeature true "arrow-keys")
|
|
# Use termcap library to query terminal size.
|
|
(lib.enableFeature enableTermcap "termcap")
|
|
];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
propagatedBuildInputs = lib.optional enableTermcap ncurses;
|
|
|
|
outputs = [
|
|
"out"
|
|
"dev"
|
|
"man"
|
|
"doc"
|
|
];
|
|
|
|
passthru.updateScript = nix-update-script { };
|
|
|
|
meta = with lib; {
|
|
homepage = "https://troglobit.com/projects/editline/";
|
|
description = "Readline() replacement for UNIX without termcap (ncurses)";
|
|
license = licenses.bsdOriginal;
|
|
maintainers = with maintainers; [ oxalica ];
|
|
platforms = platforms.all;
|
|
};
|
|
})
|