2021-10-28 06:52:43 +00:00
|
|
|
{ stdenv
|
2021-09-18 10:52:07 +00:00
|
|
|
, lib
|
2021-10-28 06:52:43 +00:00
|
|
|
, rustPlatform
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, Security
|
2021-10-28 06:52:43 +00:00
|
|
|
, DiskArbitration
|
|
|
|
, Foundation
|
2022-06-16 17:23:12 +00:00
|
|
|
, nixosTests
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2022-12-02 08:20:57 +00:00
|
|
|
let version = "0.30.0";
|
2021-10-28 06:52:43 +00:00
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "meilisearch";
|
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meilisearch";
|
|
|
|
repo = "MeiliSearch";
|
|
|
|
rev = "v${version}";
|
2022-12-02 08:20:57 +00:00
|
|
|
sha256 = "sha256-nw2aSEdd21iiFrV2EPOyCfSru84eNM59wsL+ipcSoDw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2022-12-02 08:20:57 +00:00
|
|
|
cargoSha256 = "sha256-0JdI5I63ImdUUBQuC4LYqHpEA1xJ5QJ+3n3MTaIHKDI=";
|
2022-09-09 14:08:57 +00:00
|
|
|
# Default features include mini dashboard which downloads something from the internet.
|
|
|
|
buildNoDefaultFeatures = true;
|
2021-10-28 06:52:43 +00:00
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security DiskArbitration Foundation ];
|
2022-06-16 17:23:12 +00:00
|
|
|
passthru.tests = {
|
|
|
|
meilisearch = nixosTests.meilisearch;
|
|
|
|
};
|
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;
|
|
|
|
|
2021-09-26 12:46:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful, fast, and an easy to use search engine ";
|
2021-12-06 16:07:01 +00:00
|
|
|
homepage = "https://docs.meilisearch.com/";
|
2021-09-26 12:46:18 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
2022-08-21 13:32:41 +00:00
|
|
|
platforms = [ "aarch64-darwin" "x86_64-linux" "x86_64-darwin" ];
|
2021-09-26 12:46:18 +00:00
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|