From bdc6c12eb36a20883f5e3776b011d160d8a3fe33 Mon Sep 17 00:00:00 2001 From: janabhumi Date: Wed, 14 Sep 2022 00:02:58 +0300 Subject: [PATCH] exa: add gitSupport input parameter... for a more convenient way to configure the package. --- pkgs/tools/misc/exa/default.nix | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix index 40fcc8b01c21..108155b6ad6d 100644 --- a/pkgs/tools/misc/exa/default.nix +++ b/pkgs/tools/misc/exa/default.nix @@ -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 = ''