exa: add gitSupport input parameter...

for a more convenient way to configure the package.
This commit is contained in:
janabhumi 2022-09-14 00:02:58 +03:00
parent 848939f110
commit bdc6c12eb3
No known key found for this signature in database
GPG Key ID: 1B59187B161C0215

View File

@ -1,5 +1,15 @@
{ lib, stdenv, fetchFromGitHub, rustPlatform, cmake, pandoc, pkg-config, zlib
, Security, libiconv, installShellFiles
{ lib
, gitSupport ? true
, stdenv
, fetchFromGitHub
, rustPlatform
, cmake
, pandoc
, pkg-config
, zlib
, Security
, libiconv
, installShellFiles
}:
rustPlatform.buildRustPackage rec {
@ -26,6 +36,9 @@ rustPlatform.buildRustPackage rec {
buildInputs = [ zlib ]
++ lib.optionals stdenv.isDarwin [ libiconv Security ];
buildNoDefaultFeatures = true;
buildFeatures = lib.optional gitSupport "git";
outputs = [ "out" "man" ];
postInstall = ''