From f4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Fri, 12 Mar 2021 16:17:27 +0000 Subject: [PATCH] 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 --- pkgs/shells/dash/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkgs/shells/dash/default.nix b/pkgs/shells/dash/default.nix index d6b99e0361e..fedd22c0b4e 100644 --- a/pkgs/shells/dash/default.nix +++ b/pkgs/shells/dash/default.nix @@ -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/";