about summary refs log tree commit diff
path: root/pkgs/tools/misc/exa
diff options
context:
space:
mode:
authorJörg Thalheim <Mic92@users.noreply.github.com>2021-08-16 02:42:43 +0100
committerGitHub <noreply@github.com>2021-08-15 21:42:43 -0400
commit6adca8026c26d49de0c07a239642c33df58376a8 (patch)
tree5af2fabf813bb3673bcc48a2f816ef7c2701b270 /pkgs/tools/misc/exa
parent71ab3c29f98331862509f3a70b596641ab589b4f (diff)
exa: fix on aarch64-darwin (#133660)
Diffstat (limited to 'pkgs/tools/misc/exa')
-rw-r--r--pkgs/tools/misc/exa/default.nix11
1 files changed, 8 insertions, 3 deletions
diff --git a/pkgs/tools/misc/exa/default.nix b/pkgs/tools/misc/exa/default.nix
index 632eb45905869..9cabff9a9bef4 100644
--- a/pkgs/tools/misc/exa/default.nix
+++ b/pkgs/tools/misc/exa/default.nix
@@ -18,16 +18,21 @@ rustPlatform.buildRustPackage rec {
 
   cargoSha256 = "sha256-ah8IjShmivS6IWL3ku/4/j+WNr/LdUnh1YJnPdaFdcM=";
 
-  nativeBuildInputs = [ cmake pkg-config installShellFiles pandoc ];
+  nativeBuildInputs = [
+    cmake pkg-config installShellFiles
+    # ghc is not supported on aarch64-darwin yet.
+  ] ++ lib.optional (stdenv.hostPlatform.system != "aarch64-darwin") pandoc;
+
   buildInputs = [ zlib ]
     ++ lib.optionals stdenv.isDarwin [ libiconv Security ];
 
-  outputs = [ "out" "man" ];
+  outputs = [ "out" ] ++ lib.optional (stdenv.hostPlatform.system != "aarch64-darwin") "man";
 
-  postInstall = ''
+  postInstall = lib.optionalString (stdenv.hostPlatform.system != "aarch64-darwin") ''
     pandoc --standalone -f markdown -t man man/exa.1.md > man/exa.1
     pandoc --standalone -f markdown -t man man/exa_colors.5.md > man/exa_colors.5
     installManPage man/exa.1 man/exa_colors.5
+  '' + ''
     installShellCompletion \
       --name exa completions/completions.bash \
       --name exa.fish completions/completions.fish \