about summary refs log tree commit diff
path: root/pkgs/tools/misc/exa
diff options
context:
space:
mode:
authorjanabhumi <dmitriy@ideascup.me>2022-09-14 00:02:58 +0300
committerjanabhumi <dmitriy@ideascup.me>2022-09-14 00:03:57 +0300
commitbdc6c12eb36a20883f5e3776b011d160d8a3fe33 (patch)
tree9939be8c9ef7a74a74ae6509fc853ffcbe404428 /pkgs/tools/misc/exa
parent848939f1100b660fda2afd3a7dc4345686e19001 (diff)
exa: add gitSupport input parameter...
for a more convenient way to configure the package.
Diffstat (limited to 'pkgs/tools/misc/exa')
-rw-r--r--pkgs/tools/misc/exa/default.nix17
1 files changed, 15 insertions, 2 deletions
diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix
index 40fcc8b01c217..108155b6ad6d3 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 = ''