2021-10-24 04:35:28 +01:00
|
|
|
{ stdenv
|
2021-09-13 06:40:45 +01:00
|
|
|
, lib
|
2021-10-24 04:35:28 +01:00
|
|
|
, rustPlatform
|
2020-04-07 09:13:52 +01:00
|
|
|
, fetchFromGitHub
|
|
|
|
, Security
|
2021-10-24 04:35:28 +01:00
|
|
|
, DiskArbitration
|
|
|
|
, Foundation
|
2022-05-27 12:59:04 +01:00
|
|
|
, nixosTests
|
2020-04-07 09:13:52 +01:00
|
|
|
}:
|
|
|
|
|
2022-12-10 15:18:57 +00:00
|
|
|
let version = "0.30.2";
|
2021-10-24 04:35:28 +01:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "meilisearch";
|
|
|
|
inherit version;
|
2022-12-10 15:36:29 +00:00
|
|
|
|
2020-04-07 09:13:52 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meilisearch";
|
|
|
|
repo = "MeiliSearch";
|
2021-09-03 04:39:22 +01:00
|
|
|
rev = "v${version}";
|
2022-12-10 15:36:29 +00:00
|
|
|
hash = "sha256-kxANzEORvR+BJDfLUD1FLorBuYjnUQixgD2jDoX6jrg=";
|
2021-09-03 04:39:22 +01:00
|
|
|
};
|
2022-12-10 15:36:29 +00:00
|
|
|
|
|
|
|
cargoHash = "sha256-IYNIr7PBNNloPizaauFYR9/NPnBMS8kQi+RNsKsNjLE=";
|
|
|
|
|
2022-08-22 13:52:12 +01:00
|
|
|
# Default features include mini dashboard which downloads something from the internet.
|
|
|
|
buildNoDefaultFeatures = true;
|
2022-12-10 15:36:29 +00:00
|
|
|
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [
|
|
|
|
Security
|
|
|
|
DiskArbitration
|
|
|
|
Foundation
|
|
|
|
];
|
|
|
|
|
2022-08-24 20:02:24 +01:00
|
|
|
passthru.tests = {
|
|
|
|
meilisearch = nixosTests.meilisearch;
|
|
|
|
};
|
2022-08-22 13:52:12 +01:00
|
|
|
|
|
|
|
# Tests will try to compile with mini-dashboard features which downloads something from the internet.
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-09-21 06:36:03 +01:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful, fast, and an easy to use search engine ";
|
2021-11-10 10:37:56 +00:00
|
|
|
homepage = "https://docs.meilisearch.com/";
|
2022-12-10 15:36:29 +00:00
|
|
|
changelog = "https://github.com/meilisearch/meilisearch/releases/tag/v${version}";
|
2021-09-21 06:36:03 +01:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
2022-08-19 18:08:19 +01:00
|
|
|
platforms = [ "aarch64-darwin" "x86_64-linux" "x86_64-darwin" ];
|
2021-09-21 06:36:03 +01:00
|
|
|
};
|
2020-04-07 09:13:52 +01:00
|
|
|
}
|