diff options
author | happysalada <raphael@megzari.com> | 2021-06-30 14:10:05 +0900 |
---|---|---|
committer | happysalada <raphael@megzari.com> | 2021-06-30 14:10:05 +0900 |
commit | cd829eeb9cd1e2cf2eee80aa4c6efed30b1c3116 (patch) | |
tree | 96c48833dc3b27e80f5f8ab664d977219fd6ca2d /pkgs/shells/oil/default.nix | |
parent | 09ee9f4c72d8b564bd6f3e26f1911404883a6a61 (diff) |
oil: make readline dependency overridable
Diffstat (limited to 'pkgs/shells/oil/default.nix')
-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; |