summary refs log tree commit diff
path: root/pkgs/shells/dash
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2021-03-12 16:17:27 +0000
committerAlyssa Ross <hi@alyssa.is>2021-04-04 22:07:15 +0000
commitf4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee (patch)
tree443c330d3e53a172967743f5ab709da3ba6b4ba6 /pkgs/shells/dash
parentac6d98dbdcd5536f6ed6f68987280ff99d64813d (diff)
downloadnixpkgs-f4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee.tar
nixpkgs-f4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee.tar.gz
nixpkgs-f4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee.tar.bz2
nixpkgs-f4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee.tar.lz
nixpkgs-f4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee.tar.xz
nixpkgs-f4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee.tar.zst
nixpkgs-f4ac75a56dcf0fdf045c04722ef6dcff7b12c2ee.zip
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
Diffstat (limited to 'pkgs/shells/dash')
-rw-r--r--pkgs/shells/dash/default.nix5
1 files changed, 4 insertions, 1 deletions
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/";