nixpkgs/pkgs/servers/search/meilisearch/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

63 lines
1.7 KiB
Nix
Raw Normal View History

2021-10-24 03:35:28 +00:00
{ stdenv
2021-09-13 05:40:45 +00:00
, lib
2021-10-24 03:35:28 +00:00
, rustPlatform
2020-04-07 08:13:52 +00:00
, fetchFromGitHub
, Security
, nixosTests
2023-05-14 16:00:49 +00:00
, nix-update-script
2020-04-07 08:13:52 +00:00
}:
2023-06-05 13:46:27 +00:00
let version = "1.2.0";
2021-10-24 03:35:28 +00:00
in
rustPlatform.buildRustPackage {
pname = "meilisearch";
inherit version;
2022-12-10 15:36:29 +00:00
2020-04-07 08:13:52 +00:00
src = fetchFromGitHub {
owner = "meilisearch";
repo = "MeiliSearch";
2023-02-23 08:12:09 +00:00
rev = "refs/tags/v${version}";
2023-06-05 13:46:27 +00:00
hash = "sha256-j+tz47dQFyKy51UAzFOc2YkAeYDUdsiteenC38cWrLI=";
};
2022-12-10 15:36:29 +00:00
cargoBuildFlags = [
"--package=meilisearch"
];
cargoLock = {
lockFile = ./Cargo.lock;
outputHashes = {
"actix-web-static-files-3.0.5" = "sha256-2BN0RzLhdykvN3ceRLkaKwSZtel2DBqZ+uz4Qut+nII=";
2023-06-05 13:46:27 +00:00
"heed-0.12.5" = "sha256-WOdpgc3sDNKBSYWB102xTxmY1SWljH9Q1+6xmj4Rb8Q=";
"lmdb-rkv-sys-0.15.1" = "sha256-zLHTprwF7aa+2jaD7dGYmOZpJYFijMTb4I3ODflNUII=";
"nelson-0.1.0" = "sha256-eF672quU576wmZSisk7oDR7QiDafuKlSg0BTQkXnzqY=";
};
};
2022-12-10 15:36:29 +00:00
2022-08-22 12:52:12 +00: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
];
2023-05-14 16:00:49 +00:00
passthru = {
updateScript = nix-update-script { };
tests = {
meilisearch = nixosTests.meilisearch;
};
};
2022-08-22 12:52:12 +00:00
# Tests will try to compile with mini-dashboard features which downloads something from the internet.
doCheck = false;
2021-09-21 05:36:03 +00:00
meta = with lib; {
2023-02-23 08:12:09 +00:00
description = "Powerful, fast, and an easy to use search engine";
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 05:36:03 +00:00
license = licenses.mit;
maintainers = with maintainers; [ happysalada ];
platforms = [ "aarch64-linux" "aarch64-darwin" "x86_64-linux" "x86_64-darwin" ];
2021-09-21 05:36:03 +00:00
};
2020-04-07 08:13:52 +00:00
}