eza: create exa compatiblity symlink (#254600)

eza: create exa compatiblity symlink
This commit is contained in:
Peter Hoeg 2023-09-12 08:19:44 +02:00 committed by GitHub
parent 79aa627be6
commit cfc486abb1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,9 @@
, Security
, libiconv
, installShellFiles
# once eza upstream gets support for setting up a compatibilty symlink for exa, we should change
# the handling here from postInstall to passing the required argument to the builder.
, exaAlias ? true
}:
rustPlatform.buildRustPackage rec {
@ -43,6 +46,8 @@ rustPlatform.buildRustPackage rec {
--bash completions/bash/eza \
--fish completions/fish/eza.fish \
--zsh completions/zsh/_eza
'' + lib.optionalString exaAlias ''
ln -s eza $out/bin/exa
'';
meta = with lib; {