From 73c4886e4a76ce9f36ba34578b56c185c1e44d76 Mon Sep 17 00:00:00 2001 From: confusedalex Date: Thu, 19 Dec 2024 13:48:12 +0100 Subject: [PATCH] fishy: init at 0.2.1 --- pkgs/by-name/fi/fishy/package.nix | 42 +++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 pkgs/by-name/fi/fishy/package.nix diff --git a/pkgs/by-name/fi/fishy/package.nix b/pkgs/by-name/fi/fishy/package.nix new file mode 100644 index 0000000000000..1bc7e382bb895 --- /dev/null +++ b/pkgs/by-name/fi/fishy/package.nix @@ -0,0 +1,42 @@ +{ + fetchFromGitHub, + lib, + nix-update-script, + openssl, + pkg-config, + rustPlatform, + versionCheckHook, +}: + +rustPlatform.buildRustPackage rec { + pname = "fishy"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "p2panda"; + repo = "fishy"; + tag = "v${version}"; + hash = "sha256-nRkP53v9+VzqHKTsHs+cBeLjh3yASFE18sSEY02NR1s="; + }; + + cargoHash = "sha256-4CzchWX7pd3IOTGMZj24zgJVelaYKOnKyCxGpwsCTMI="; + + OPENSSL_NO_VENDOR = 1; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl ]; + + nativeInstallCheckInputs = [ versionCheckHook ]; + versionCheckProgramArg = "--version"; + doInstallCheck = true; + passthru.updateScript = nix-update-script { }; + + meta = { + description = "Create, manage and deploy p2panda schemas"; + homepage = "https://github.com/p2panda/fishy"; + changelog = "https://github.com/p2panda/fishy/blob/${src.rev}/CHANGELOG.md"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ confusedalex ]; + mainProgram = "fishy"; + }; +}