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
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
2021-10-28 06:52:43 +00:00
|
|
|
let version = "0.23.1";
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "meilisearch";
|
|
|
|
inherit version;
|
2020-04-24 23:36:52 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meilisearch";
|
|
|
|
repo = "MeiliSearch";
|
|
|
|
rev = "v${version}";
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "sha256-4F7noByC9ZgqYwPfkm8VE15QU2jbBvUAH4Idxa+J+Aw=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
2021-10-28 06:52:43 +00:00
|
|
|
cargoPatches = [
|
|
|
|
# feature mini-dashboard tries to download a file from the internet
|
|
|
|
# feature analitycs should be opt-in
|
|
|
|
./remove-default-feature.patch
|
|
|
|
];
|
|
|
|
cargoSha256 = "sha256-dz+1IQZRSeMEagI2dnOtR3A8prg4UZ2Om0pd1BUhuhE=";
|
|
|
|
buildInputs = lib.optionals stdenv.isDarwin [ Security DiskArbitration Foundation ];
|
2021-09-26 12:46:18 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful, fast, and an easy to use search engine ";
|
|
|
|
homepage = https://docs.meilisearch.com/;
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
2020-04-24 23:36:52 +00:00
|
|
|
}
|