Merge pull request #5 from Schuwi/main
Fix aarch64 architecture recognition
This commit is contained in:
commit
4e0dc359f8
6
lib.nix
6
lib.nix
@ -27,9 +27,11 @@ with builtins; rec {
|
||||
else if system == "i686-darwin" then
|
||||
lib.findFirst ({host, ...}: (match "i[3456]86-apple-darwin.*" host) != null) null systems
|
||||
else if system == "aarch64-linux" then
|
||||
lib.findFirst ({host, ...}: (match "(aarch64|arm64)-linux-gnu" host) != null) null systems
|
||||
# tools.go uses regexp.MatchString which will also return true for substring matches, so we add a .* to the regex
|
||||
lib.findFirst ({host, ...}: (match "(aarch64|arm64)-linux-gnu.*" host) != null) null systems
|
||||
else if system == "x86_64-linux" then
|
||||
lib.findFirst ({host, ...}: (match "x86_64-.*linux-gnu" host) != null) null systems
|
||||
# also add a .* to the regex here though it is not necessary in the current dataset (March 2024)
|
||||
lib.findFirst ({host, ...}: (match "x86_64-.*linux-gnu.*" host) != null) null systems
|
||||
else null;
|
||||
convertHash = hash: let
|
||||
m = (match "(SHA-256|SHA-1|MD5):(.*)" hash);
|
||||
|
Loading…
x
Reference in New Issue
Block a user