mangal: use stdenv.buildPlatform.canExecute
This commit is contained in:
parent
fe7e01bda1
commit
b80f0edf72
@ -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 \
|
||||
|
Loading…
Reference in New Issue
Block a user