2024-06-20 14:57:18 +00:00
|
|
|
{
|
|
|
|
stdenv,
|
|
|
|
lib,
|
|
|
|
rustPlatform,
|
|
|
|
fetchFromGitHub,
|
|
|
|
Security,
|
|
|
|
SystemConfiguration,
|
|
|
|
nixosTests,
|
|
|
|
nix-update-script,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
let
|
2024-06-24 18:47:55 +00:00
|
|
|
version = "1.8.3";
|
2021-10-28 06:52:43 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "meilisearch";
|
|
|
|
inherit version;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meilisearch";
|
|
|
|
repo = "MeiliSearch";
|
2023-03-04 12:14:45 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-24 18:47:55 +00:00
|
|
|
hash = "sha256-R074dn9kWxHf5loq/K4aLWvrJwpt7YAigNU0YHc0mRg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
cargoBuildFlags = [ "--package=meilisearch" ];
|
2023-04-12 12:48:02 +00:00
|
|
|
|
2023-03-27 19:17:25 +00:00
|
|
|
cargoLock = {
|
|
|
|
lockFile = ./Cargo.lock;
|
|
|
|
outputHashes = {
|
|
|
|
"actix-web-static-files-3.0.5" = "sha256-2BN0RzLhdykvN3ceRLkaKwSZtel2DBqZ+uz4Qut+nII=";
|
2024-01-25 14:12:00 +00:00
|
|
|
"hf-hub-0.3.2" = "sha256-tsn76b+/HRvPnZ7cWd8SBcEdnMPtjUEIRJipOJUbz54=";
|
2024-06-20 14:57:18 +00:00
|
|
|
"tokenizers-0.15.2" = "sha256-lWvCu2hDJFzK6IUBJ4yeL4eZkOA08LHEMfiKXVvkog8=";
|
2023-03-27 19:17:25 +00:00
|
|
|
};
|
|
|
|
};
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2022-09-09 14:08:57 +00:00
|
|
|
# Default features include mini dashboard which downloads something from the internet.
|
|
|
|
buildNoDefaultFeatures = true;
|
2022-12-17 10:02:37 +00:00
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
nativeBuildInputs = [ rustPlatform.bindgenHook ];
|
2024-05-15 15:35:15 +00:00
|
|
|
|
2022-12-17 10:02:37 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
2024-06-20 14:57:18 +00:00
|
|
|
Security
|
|
|
|
SystemConfiguration
|
2022-12-17 10:02:37 +00:00
|
|
|
];
|
|
|
|
|
2023-05-24 13:37:59 +00:00
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
tests = {
|
|
|
|
meilisearch = nixosTests.meilisearch;
|
|
|
|
};
|
2022-06-16 17:23:12 +00:00
|
|
|
};
|
2022-09-09 14:08:57 +00:00
|
|
|
|
|
|
|
# Tests will try to compile with mini-dashboard features which downloads something from the internet.
|
|
|
|
doCheck = false;
|
|
|
|
|
2024-06-20 14:57:18 +00:00
|
|
|
meta = {
|
2023-03-04 12:14:45 +00:00
|
|
|
description = "Powerful, fast, and an easy to use search engine";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "meilisearch";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://docs.meilisearch.com/";
|
2022-12-17 10:02:37 +00:00
|
|
|
changelog = "https://github.com/meilisearch/meilisearch/releases/tag/v${version}";
|
2024-06-20 14:57:18 +00:00
|
|
|
license = lib.licenses.mit;
|
|
|
|
maintainers = with lib.maintainers; [ happysalada ];
|
|
|
|
platforms = [
|
|
|
|
"aarch64-linux"
|
|
|
|
"aarch64-darwin"
|
|
|
|
"x86_64-linux"
|
|
|
|
"x86_64-darwin"
|
|
|
|
];
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|