diff --git a/pkgs/by-name/fi/fishy/package.nix b/pkgs/by-name/fi/fishy/package.nix new file mode 100644 index 0000000000000..d1319b673f837 --- /dev/null +++ b/pkgs/by-name/fi/fishy/package.nix @@ -0,0 +1,34 @@ +{ + lib, + fetchFromGitHub, + rustPlatform, + openssl, + pkg-config, +}: + +rustPlatform.buildRustPackage rec { + pname = "fishy"; + version = "0.2.1"; + + src = fetchFromGitHub { + owner = "p2panda"; + repo = pname; + tag = "v${version}"; + hash = "sha256-nRkP53v9+VzqHKTsHs+cBeLjh3yASFE18sSEY02NR1s="; + }; + + cargoHash = "sha256-4CzchWX7pd3IOTGMZj24zgJVelaYKOnKyCxGpwsCTMI="; + + OPENSSL_NO_VENDOR = 1; + + nativeBuildInputs = [ pkg-config ]; + buildInputs = [ openssl ]; + + meta = { + description = "Create, manage and deploy p2panda schemas"; + homepage = "https://github.com/p2panda/fishy"; + license = lib.licenses.agpl3Only; + maintainers = with lib.maintainers; [ confusedalex ]; + mainProgram = "fishy"; + }; +}