Unverified Commit eaa057d2 authored by Soner Sayakci's avatar Soner Sayakci
Browse files

typesense: add darwin support

parent 19322b7a
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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 = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
    maintainers = with maintainers; [ oddlama ];
  };
}
+4 −0
Original line number Diff line number Diff line
@@ -12,6 +12,10 @@
    "x86_64-darwin": {
      "arch": "darwin-amd64",
      "hash": "sha256-FkWie6DgIhgojrn48rt9/GT0Lmu7jt74q2rzw1MI2Ws="
    },
    "aarch64-darwin": {
      "arch": "darwin-arm64",
      "hash": "sha256-ejw8B+DmCQs6cUSiLueY9tSdWnrFSFvLMS36U4+v8N4="
    }
  }
}
+1 −0
Original line number Diff line number Diff line
@@ -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"
)