diff options
Diffstat (limited to 'pkgs/development/tools/fnm/default.nix')
-rw-r--r-- | pkgs/development/tools/fnm/default.nix | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/tools/fnm/default.nix b/pkgs/development/tools/fnm/default.nix index 7b521856a3e8..9aafdb4e02c1 100644 --- a/pkgs/development/tools/fnm/default.nix +++ b/pkgs/development/tools/fnm/default.nix @@ -27,7 +27,7 @@ rustPlatform.buildRustPackage rec { doCheck = false; - postInstall = '' + postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) '' installShellCompletion --cmd fnm \ --bash <($out/bin/fnm completions --shell bash) \ --fish <($out/bin/fnm completions --shell fish) \ |