dash: add libedit support

This allows running set -o emacs to get line editing in dash, which is
a major usability improvement.

Closure size before: 31.6M
              after: 35.3M
This commit is contained in:
Alyssa Ross 2021-03-12 16:17:27 +00:00
parent ac6d98dbdc
commit f4ac75a56d

View File

@ -1,4 +1,4 @@
{ lib, stdenv, buildPackages, autoreconfHook, fetchurl }:
{ lib, stdenv, buildPackages, autoreconfHook, fetchurl, libedit }:
stdenv.mkDerivation rec {
pname = "dash";
@ -25,6 +25,9 @@ stdenv.mkDerivation rec {
depsBuildBuild = [ buildPackages.stdenv.cc ];
nativeBuildInputs = lib.optional stdenv.isDarwin autoreconfHook;
buildInputs = [ libedit ];
configureFlags = [ "--with-libedit" ];
meta = with lib; {
homepage = "http://gondor.apana.org.au/~herbert/dash/";