about summary refs log tree commit diff
path: root/nixpkgs/pkgs/servers/search/meilisearch/default.nix
blob: 4ad1d78eb502028031d33424ef915c878ddabc98 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, stdenv
, rustPlatform
, fetchFromGitHub
, IOKit
, Security
}:

rustPlatform.buildRustPackage rec {
  pname = "meilisearch";
  version = "0.9.0";

  src = fetchFromGitHub {
    owner = "meilisearch";
    repo = "MeiliSearch";
    rev = "v${version}";
    sha256 = "00i5vsbcyrbsvhr5n1b3pxa87v0kfw6pg931i2kzyf4wh021k6sw";
  };

  cargoSha256 = "1icxpragn69c95i5gyx0b07gw4h82r8fsv0nvns0v8dxqisz877k";

  buildInputs = lib.optionals stdenv.isDarwin [ IOKit Security ];

  meta = with lib; {
    description = "Ultra relevant and instant full-text search API";
    homepage = "https://meilisearch.com/";
    license = licenses.mit;
    maintainers = with maintainers; [ Br1ght0ne ];
  };
}