-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The flake.nix uses the default crane toolchain on darwin. Override the default crane toolchain and specify the target to use the correct rust toolchain.
- Loading branch information
1 parent
f59a1d7
commit 9a17700
Showing
3 changed files
with
35 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
{ | ||
pkgs, | ||
nativelink, | ||
... | ||
}: | ||
pkgs.writeShellScriptBin "is-executable-test" '' | ||
set -xuo pipefail | ||
nativelink_output="$(${nativelink}/bin/nativelink 2>&1)" | ||
print_error_output=$(cat <<EOF | ||
error: the following required arguments were not provided: | ||
<CONFIG_FILE> | ||
Usage: nativelink <CONFIG_FILE> | ||
For more information, try '--help'. | ||
EOF) | ||
if [ "$nativelink_output" = "$print_error_output" ]; then | ||
echo "The output of nativelink matches the print_error output." | ||
else | ||
echo 'The output of nativelink does not match the print_error output:' | ||
diff <(echo "$nativelink_output") <(echo "$print_error_output") >&2 | ||
exit 1 | ||
fi | ||
'' |