From b94e85208a62964f445a21ae81359e2e5531ebf3 Mon Sep 17 00:00:00 2001 From: Ailsa Sun <135079815+ailsa-sun@users.noreply.github.com> Date: Wed, 27 Nov 2024 01:07:11 -0800 Subject: [PATCH] stract: init at version 0-unstable-2024-09-14 (#343811) --- pkgs/by-name/st/stract/package.nix | 36 ++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 pkgs/by-name/st/stract/package.nix diff --git a/pkgs/by-name/st/stract/package.nix b/pkgs/by-name/st/stract/package.nix new file mode 100644 index 000000000000..ac809562dd9f --- /dev/null +++ b/pkgs/by-name/st/stract/package.nix @@ -0,0 +1,36 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + pkg-config, + openssl, + curl, +}: + +rustPlatform.buildRustPackage rec { + pname = "stract"; + version = "0-unstable-2024-09-14"; + + src = fetchFromGitHub { + owner = "StractOrg"; + repo = "stract"; + rev = "21d28ea86d9ff19ccb4c25b1bdde67e5ec302d79"; + hash = "sha256-7Uvo5+saxwTMQjfDliyOYC6j6LbpMf/FiONfX38xepI="; + }; + + cargoHash = "sha256-7Skbeeev/xBAhlcyOsYpDJB9LnZpT66D0Fu1I/jIBso="; + + cargoDepsName = "stract"; + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ + openssl + curl + ]; + + meta = { + description = "Open source web search engine hosted at stract.com targeted towards tinkerers and developers."; + homepage = "https://github.com/StractOrg/stract"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ ailsa-sun ]; + }; +}