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

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

41 lines
1.1 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
2021-10-24 03:35:28 +00:00
, DiskArbitration
, Foundation
, nixosTests
2020-04-07 08:13:52 +00:00
}:
2021-10-24 03:35:28 +00:00
let version = "0.23.1";
in
rustPlatform.buildRustPackage {
pname = "meilisearch";
inherit version;
2020-04-07 08:13:52 +00:00
src = fetchFromGitHub {
owner = "meilisearch";
repo = "MeiliSearch";
rev = "v${version}";
2021-10-24 03:35:28 +00:00
sha256 = "sha256-4F7noByC9ZgqYwPfkm8VE15QU2jbBvUAH4Idxa+J+Aw=";
};
2021-10-24 03:35:28 +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 ];
passthru.tests = {
meilisearch = nixosTests.meilisearch;
};
2021-09-21 05:36:03 +00:00
meta = with lib; {
broken = (stdenv.isDarwin && stdenv.isx86_64);
2021-09-21 05:36:03 +00:00
description = "Powerful, fast, and an easy to use search engine ";
homepage = "https://docs.meilisearch.com/";
2021-09-21 05:36:03 +00:00
license = licenses.mit;
maintainers = with maintainers; [ happysalada ];
platforms = [ "aarch64-darwin" "x86_64-linux" "x86_64-darwin" ];
2021-09-21 05:36:03 +00:00
};
2020-04-07 08:13:52 +00:00
}