oil: make readline dependency overridable

This commit is contained in:
happysalada 2021-06-30 14:10:05 +09:00
parent 09ee9f4c72
commit cd829eeb9c

View file

@ -1,4 +1,4 @@
{ stdenv, lib, fetchurl, readline }:
{ stdenv, lib, fetchurl, withReadline ? true, readline }:
stdenv.mkDerivation rec {
pname = "oil";
@ -17,8 +17,8 @@ stdenv.mkDerivation rec {
mkdir -p $out/bin
'';
buildInputs = [ readline ];
configureFlags = [ "--with-readline" ];
buildInputs = lib.optional withReadline readline;
configureFlags = lib.optional withReadline "--with-readline";
# Stripping breaks the bundles by removing the zip file from the end.
dontStrip = true;