typesense: add darwin support

This commit is contained in:
Soner Sayakci 2024-05-01 20:49:15 +02:00
parent 19322b7ac4
commit eaa057d268
No known key found for this signature in database
3 changed files with 7 additions and 2 deletions

View File

@ -21,7 +21,7 @@ stdenv.mkDerivation {
inherit hash; inherit hash;
}; };
nativeBuildInputs = [ nativeBuildInputs = lib.optionals stdenv.isLinux [
autoPatchelfHook autoPatchelfHook
]; ];
@ -59,7 +59,7 @@ stdenv.mkDerivation {
# This is where I stopped trying for now. # This is where I stopped trying for now.
# XXX: retry once typesense has officially released their bazel based build. # XXX: retry once typesense has officially released their bazel based build.
sourceProvenance = with sourceTypes; [ binaryNativeCode ]; sourceProvenance = with sourceTypes; [ binaryNativeCode ];
platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ]; platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
maintainers = with maintainers; [ oddlama ]; maintainers = with maintainers; [ oddlama ];
}; };
} }

View File

@ -12,6 +12,10 @@
"x86_64-darwin": { "x86_64-darwin": {
"arch": "darwin-amd64", "arch": "darwin-amd64",
"hash": "sha256-FkWie6DgIhgojrn48rt9/GT0Lmu7jt74q2rzw1MI2Ws=" "hash": "sha256-FkWie6DgIhgojrn48rt9/GT0Lmu7jt74q2rzw1MI2Ws="
},
"aarch64-darwin": {
"arch": "darwin-arm64",
"hash": "sha256-ejw8B+DmCQs6cUSiLueY9tSdWnrFSFvLMS36U4+v8N4="
} }
} }
} }

View File

@ -15,6 +15,7 @@ fi
declare -A platforms=( declare -A platforms=(
[aarch64-linux]="linux-arm64" [aarch64-linux]="linux-arm64"
[aarch64-darwin]="darwin-arm64"
[x86_64-darwin]="darwin-amd64" [x86_64-darwin]="darwin-amd64"
[x86_64-linux]="linux-amd64" [x86_64-linux]="linux-amd64"
) )