diff options
author | Sandro <sandro.jaeckel@gmail.com> | 2021-06-30 23:21:03 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-30 23:21:03 +0200 |
commit | 82cd8a16795244b117baea3ab61e56c04ee8fead (patch) | |
tree | 3bc1291b47d2aa024cb98e80707426f3b18daa0b /pkgs/shells | |
parent | bf93f1c180aeb3e9f58b84737610163817a62c77 (diff) | |
parent | cd829eeb9cd1e2cf2eee80aa4c6efed30b1c3116 (diff) |
Merge pull request #128732 from happysalada/oil_optional_readline
Diffstat (limited to 'pkgs/shells')
-rw-r--r-- | pkgs/shells/oil/default.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/shells/oil/default.nix b/pkgs/shells/oil/default.nix index 654476bd5ae0c..1f6c7b70dc71e 100644 --- a/pkgs/shells/oil/default.nix +++ b/pkgs/shells/oil/default.nix @@ -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; |