From c112844a28b70c1d18565088aa3568b0cca2fa67 Mon Sep 17 00:00:00 2001 From: Gaetan Lepage Date: Mon, 5 Jan 2026 10:49:17 +0000 Subject: [PATCH] shore: init at 0.1.4 --- pkgs/by-name/sh/shore/package.nix | 46 +++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 pkgs/by-name/sh/shore/package.nix diff --git a/pkgs/by-name/sh/shore/package.nix b/pkgs/by-name/sh/shore/package.nix new file mode 100644 index 000000000000..0ecf8b259904 --- /dev/null +++ b/pkgs/by-name/sh/shore/package.nix @@ -0,0 +1,46 @@ +{ + lib, + rustPlatform, + fetchFromGitHub, + pkg-config, + openssl, + versionCheckHook, +}: + +rustPlatform.buildRustPackage (finalAttrs: { + pname = "shore"; + version = "0.1.4"; + + src = fetchFromGitHub { + owner = "MoonKraken"; + repo = "shore"; + tag = finalAttrs.version; + hash = "sha256-K9GKMijLU1ii5O8P4fT5Vl3S3HoVmvcUyCiIC69dTdU="; + }; + + cargoHash = "sha256-HYdTODIHA1TGhu6BKrKFkvBlGtqVt89wYX9Ehn0EOC0="; + + env.OPENSSL_NO_VENDOR = true; + + nativeBuildInputs = [ + pkg-config + ]; + + buildInputs = [ + openssl + ]; + + nativeInstallCheckInputs = [ + versionCheckHook + ]; + versionCheckProgramArg = "--version"; + + meta = { + description = "CLI-based frontend for inference providers with vim inspired keybindings"; + homepage = "https://github.com/MoonKraken/shore"; + changelog = "https://github.com/MoonKraken/shore/releases/tag/${finalAttrs.src.tag}"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ GaetanLepage ]; + mainProgram = "shore"; + }; +})