diff --git a/pkgs/shells/oil/default.nix b/pkgs/shells/oil/default.nix index 4796cc27391..c88e012a0c3 100644 --- a/pkgs/shells/oil/default.nix +++ b/pkgs/shells/oil/default.nix @@ -1,4 +1,4 @@ -{ stdenv, lib, fetchurl, fetchpatch }: +{ stdenv, lib, fetchurl, fetchpatch, readline }: stdenv.mkDerivation rec { pname = "oil"; @@ -26,6 +26,9 @@ stdenv.mkDerivation rec { mkdir -p $out/bin ''; + buildInputs = [ readline ]; + configureFlags = [ "--with-readline" ]; + # Stripping breaks the bundles by removing the zip file from the end. dontStrip = true; @@ -40,4 +43,8 @@ stdenv.mkDerivation rec { maintainers = with lib.maintainers; [ lheckemann ]; }; + + passthru = { + shellPath = "/bin/osh"; + }; }