{ stdenv , lib , rustPlatform , fetchFromGitHub , Security , DiskArbitration , Foundation , nixosTests }: let version = "1.0.0"; in rustPlatform.buildRustPackage { pname = "meilisearch"; inherit version; src = fetchFromGitHub { owner = "meilisearch"; repo = "MeiliSearch"; rev = "v${version}"; hash = "sha256-XWPJldWxe8iply7XtmDem1gfbNuuaWuFdMfuCbcU6tc="; }; cargoHash = "sha256-v8P4pbTJ/t9TgB07tyhn3y8q65xILFTbBgziw5kuxUQ="; # Default features include mini dashboard which downloads something from the internet. buildNoDefaultFeatures = true; buildInputs = lib.optionals stdenv.isDarwin [ Security DiskArbitration Foundation ]; passthru.tests = { meilisearch = nixosTests.meilisearch; }; # Tests will try to compile with mini-dashboard features which downloads something from the internet. doCheck = false; meta = with lib; { description = "Powerful, fast, and an easy to use search engine "; homepage = "https://docs.meilisearch.com/"; changelog = "https://github.com/meilisearch/meilisearch/releases/tag/v${version}"; license = licenses.mit; maintainers = with maintainers; [ happysalada ]; platforms = [ "aarch64-darwin" "x86_64-linux" "x86_64-darwin" ]; }; }