Merge pull request #191115 from pleshevskiy/exa
exa: add gitSupport input parameter
This commit is contained in:
commit
95b2ee7c6b
1 changed files with 15 additions and 2 deletions
|
@ -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 = ''
|
||||
|
|
Loading…
Reference in a new issue