Merge pull request #128732 from happysalada/oil_optional_readline
This commit is contained in:
commit
82cd8a1679
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue