mangal: use stdenv.buildPlatform.canExecute

This commit is contained in:
Peder Bergebakken Sundt 2024-10-21 11:34:20 +02:00
parent fe7e01bda1
commit b80f0edf72

View File

@ -26,7 +26,7 @@ buildGoModule rec {
nativeBuildInputs = [ installShellFiles ];
postInstall = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
postInstall = lib.optionalString (stdenv.buildPlatform.canExecute stdenv.hostPlatform) ''
# Mangal creates a config file in the folder ~/.config/mangal and fails if not possible
export HOME=$(mktemp -d)
installShellCompletion --cmd mangal \