2021-10-24 05:35:28 +02:00
|
|
|
{ stdenv
|
2021-09-13 07:40:45 +02:00
|
|
|
, lib
|
2021-10-24 05:35:28 +02:00
|
|
|
, rustPlatform
|
2020-04-07 10:13:52 +02:00
|
|
|
, fetchFromGitHub
|
|
|
|
, Security
|
2021-10-24 05:35:28 +02:00
|
|
|
, DiskArbitration
|
|
|
|
, Foundation
|
2020-04-07 10:13:52 +02:00
|
|
|
}:
|
|
|
|
|
2021-10-24 05:35:28 +02:00
|
|
|
let version = "0.23.1";
|
|
|
|
in
|
|
|
|
rustPlatform.buildRustPackage {
|
|
|
|
pname = "meilisearch";
|
|
|
|
inherit version;
|
2020-04-07 10:13:52 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "meilisearch";
|
|
|
|
repo = "MeiliSearch";
|
2021-09-03 05:39:22 +02:00
|
|
|
rev = "v${version}";
|
2021-10-24 05:35:28 +02:00
|
|
|
sha256 = "sha256-4F7noByC9ZgqYwPfkm8VE15QU2jbBvUAH4Idxa+J+Aw=";
|
2021-09-03 05:39:22 +02:00
|
|
|
};
|
2021-10-24 05:35:28 +02: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-21 07:36:03 +02:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Powerful, fast, and an easy to use search engine ";
|
2021-11-10 11:37:56 +01:00
|
|
|
homepage = "https://docs.meilisearch.com/";
|
2021-09-21 07:36:03 +02:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ happysalada ];
|
|
|
|
platforms = [ "x86_64-linux" "x86_64-darwin" ];
|
|
|
|
};
|
2020-04-07 10:13:52 +02:00
|
|
|
}
|