about summary refs log tree commit diff
path: root/pkgs/tools/misc/eza/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/tools/misc/eza/default.nix')
-rw-r--r--pkgs/tools/misc/eza/default.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/tools/misc/eza/default.nix b/pkgs/tools/misc/eza/default.nix
index 2519f669bef76..9a29ab76f15fd 100644
--- a/pkgs/tools/misc/eza/default.nix
+++ b/pkgs/tools/misc/eza/default.nix
@@ -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; {