mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-20 08:59:32 +03:00
Merge pull request #128732 from happysalada/oil_optional_readline
This commit is contained in:
commit
82cd8a1679
@ -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 New Issue
Block a user