From 2893230b5084f2ae56fe6e3d6633b33660927187 Mon Sep 17 00:00:00 2001 From: Muhammad Falak R Wani Date: Sat, 26 Aug 2023 18:13:52 +0530 Subject: [PATCH] weggli: init at 0.2.4 Changelog: https://github.com/weggli-rs/weggli/releases/tag/v0.2.4 Signed-off-by: Muhammad Falak R Wani --- pkgs/tools/security/weggli/default.nix | 35 ++++++++++++++++++++++++++ pkgs/top-level/all-packages.nix | 2 ++ 2 files changed, 37 insertions(+) create mode 100644 pkgs/tools/security/weggli/default.nix diff --git a/pkgs/tools/security/weggli/default.nix b/pkgs/tools/security/weggli/default.nix new file mode 100644 index 000000000000..85083e2cf22b --- /dev/null +++ b/pkgs/tools/security/weggli/default.nix @@ -0,0 +1,35 @@ +{ lib +, rustPlatform +, fetchFromGitHub +, testers +, weggli +}: + +rustPlatform.buildRustPackage rec { + pname = "weggli"; + version = "0.2.4"; + + src = fetchFromGitHub { + owner = "weggli-rs"; + repo = "weggli"; + rev = "v${version}"; + hash = "sha256-6XSedsTUjcZzFXaNitsXlUBpxC6TYVMCB+AfH3x7c5E="; + }; + + cargoSha256 = "sha256-Cj/m4GRaqI/lHYFruj047B7FdGoVl/wC8I2o1dzhOTs="; + + passthru.tests.version = testers.testVersion { + package = weggli; + command = "weggli -V"; + version = "weggli ${version}"; + }; + + meta = with lib; { + description = "Weggli is a fast and robust semantic search tool for C and C++ codebases"; + homepage = "https://github.com/weggli-rs/weggli"; + changelog = "https://github.com/weggli-rs/weggli/releases/tag/v${version}"; + mainProgram = "weggli"; + license = licenses.asl20; + maintainers = with maintainers; [ arturcygan mfrw ]; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 0dce69e2545b..bb2956fea4b9 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -42197,6 +42197,8 @@ with pkgs; wpm = callPackage ../applications/misc/wpm { }; + weggli = callPackage ../tools/security/weggli { }; + yazi = callPackage ../applications/file-managers/yazi { inherit (darwin.apple_sdk.frameworks) Foundation; }; ssl-proxy = callPackage ../tools/networking/ssl-proxy { };