mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-17 18:34:38 +00:00
571c71e6f7
We are migrating packages that meet below requirements: 1. using `callPackage` 2. called path is a directory 3. overriding set is empty (`{ }`) 4. not containing path expressions other than relative path (to makenixpkgs-vet happy) 5. not referenced by nix files outside of the directory, other than`pkgs/top-level/all-packages.nix` 6. not referencing nix files outside of the directory 7. not referencing `default.nix` (since it's changed to `package.nix`) 8. `outPath` doesn't change after migration The tool is here: https://github.com/Aleksanaa/by-name-migrate.
45 lines
1.4 KiB
Nix
45 lines
1.4 KiB
Nix
{ lib, stdenv, fetchFromGitHub, autoreconfHook, nix-update-script, fetchpatch }:
|
|
|
|
stdenv.mkDerivation rec {
|
|
pname = "editline";
|
|
version = "1.17.1";
|
|
src = fetchFromGitHub {
|
|
owner = "troglobit";
|
|
repo = "editline";
|
|
rev = version;
|
|
sha256 = "sha256-0FeDUVCUahbweH24nfaZwa7j7lSfZh1TnQK7KYqO+3g=";
|
|
};
|
|
|
|
patches = [
|
|
(fetchpatch {
|
|
name = "fix-for-home-end-in-tmux.patch";
|
|
url = "https://github.com/troglobit/editline/commit/265c1fb6a0b99bedb157dc7c320f2c9629136518.patch";
|
|
sha256 = "sha256-9fhQH0hT8BcykGzOUoT18HBtWjjoXnePSGDJQp8GH30=";
|
|
})
|
|
|
|
# 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=";
|
|
})
|
|
];
|
|
|
|
configureFlags = [ (lib.enableFeature true "sigstop") ];
|
|
|
|
nativeBuildInputs = [ autoreconfHook ];
|
|
|
|
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;
|
|
};
|
|
}
|