diff options
author | Pol Dellaiera <pol.dellaiera@protonmail.com> | 2024-05-01 22:35:35 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-01 22:35:35 +0200 |
commit | 9d7a1659bc5c6be24ac46407b91807c6e3e0227d (patch) | |
tree | 676d5294bc7ef1d8bfa9488e52a8d1094c98c5c0 /pkgs/servers | |
parent | d371a001160e1f30bf20c29b7d3bdc4e2188e73b (diff) | |
parent | 3a0b4dffecc0a853e09d892e25d075fb0fedafda (diff) |
Merge pull request #308343 from shyim/typesense-darwin
typesense: add darwin support
Diffstat (limited to 'pkgs/servers')
-rw-r--r-- | pkgs/servers/search/typesense/default.nix | 4 | ||||
-rw-r--r-- | pkgs/servers/search/typesense/sources.json | 4 | ||||
-rwxr-xr-x | pkgs/servers/search/typesense/update.sh | 1 |
3 files changed, 7 insertions, 2 deletions
diff --git a/pkgs/servers/search/typesense/default.nix b/pkgs/servers/search/typesense/default.nix index 30e09db055f2f..7a4256d81278b 100644 --- a/pkgs/servers/search/typesense/default.nix +++ b/pkgs/servers/search/typesense/default.nix @@ -21,7 +21,7 @@ stdenv.mkDerivation { inherit hash; }; - nativeBuildInputs = [ + nativeBuildInputs = lib.optionals stdenv.isLinux [ autoPatchelfHook ]; @@ -59,7 +59,7 @@ stdenv.mkDerivation { # This is where I stopped trying for now. # XXX: retry once typesense has officially released their bazel based build. sourceProvenance = with sourceTypes; [ binaryNativeCode ]; - platforms = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" ]; + platforms = lib.platforms.linux ++ lib.platforms.darwin; maintainers = with maintainers; [ oddlama ]; }; } diff --git a/pkgs/servers/search/typesense/sources.json b/pkgs/servers/search/typesense/sources.json index 0f7f43b7015af..854c0cfc4f9d9 100644 --- a/pkgs/servers/search/typesense/sources.json +++ b/pkgs/servers/search/typesense/sources.json @@ -12,6 +12,10 @@ "x86_64-darwin": { "arch": "darwin-amd64", "hash": "sha256-FkWie6DgIhgojrn48rt9/GT0Lmu7jt74q2rzw1MI2Ws=" + }, + "aarch64-darwin": { + "arch": "darwin-arm64", + "hash": "sha256-ejw8B+DmCQs6cUSiLueY9tSdWnrFSFvLMS36U4+v8N4=" } } } diff --git a/pkgs/servers/search/typesense/update.sh b/pkgs/servers/search/typesense/update.sh index c6d733181cd39..3dec74232f46b 100755 --- a/pkgs/servers/search/typesense/update.sh +++ b/pkgs/servers/search/typesense/update.sh @@ -15,6 +15,7 @@ fi declare -A platforms=( [aarch64-linux]="linux-arm64" + [aarch64-darwin]="darwin-arm64" [x86_64-darwin]="darwin-amd64" [x86_64-linux]="linux-amd64" ) |