mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-25 00:12:56 +00:00
typesense: add darwin support
This commit is contained in:
parent
19322b7ac4
commit
eaa057d268
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
@ -12,6 +12,10 @@
|
||||
"x86_64-darwin": {
|
||||
"arch": "darwin-amd64",
|
||||
"hash": "sha256-FkWie6DgIhgojrn48rt9/GT0Lmu7jt74q2rzw1MI2Ws="
|
||||
},
|
||||
"aarch64-darwin": {
|
||||
"arch": "darwin-arm64",
|
||||
"hash": "sha256-ejw8B+DmCQs6cUSiLueY9tSdWnrFSFvLMS36U4+v8N4="
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
)
|
||||
|
Loading…
Reference in New Issue
Block a user