semtools: init at 1.2.0

+41
+41
pkgs/by-name/se/semtools/package.nix
··· 1 + { 2 + lib, 3 + stdenv, 4 + rustPlatform, 5 + fetchFromGitHub, 6 + nix-update-script, 7 + openssl, 8 + pkg-config, 9 + }: 10 + 11 + rustPlatform.buildRustPackage (finalAttrs: { 12 + pname = "semtools"; 13 + version = "1.2.0"; 14 + 15 + src = fetchFromGitHub { 16 + owner = "run-llama"; 17 + repo = "semtools"; 18 + tag = "v${finalAttrs.version}"; 19 + hash = "sha256-wpOKEESM3uG9m/EqWnF2uXITbrwIhwe2MSA0FN7Fu+w="; 20 + }; 21 + 22 + cargoHash = "sha256-irLhwlNnB3G63WUGV2wo+LQGQgNHYzu/vb/RM/G6Fdc="; 23 + 24 + nativeBuildInputs = [ pkg-config ]; 25 + buildInputs = [ openssl ]; 26 + 27 + checkFlags = lib.optionals (stdenv.hostPlatform.system == "x86_64-darwin") [ 28 + # https://github.com/run-llama/semtools/issues/17 29 + "--skip=tests::test_search_result_context_calculation" 30 + ]; 31 + 32 + passthru.updateScript = nix-update-script { }; 33 + 34 + meta = { 35 + description = "Semantic search and document parsing tools for the command line"; 36 + homepage = "https://github.com/run-llama/semtools"; 37 + changelog = "https://github.com/run-llama/semtools/releases/tag/v${finalAttrs.version}"; 38 + license = lib.licenses.mit; 39 + maintainers = [ lib.maintainers.amadejkastelic ]; 40 + }; 41 + })