52 lines
1.2 KiB
Nix
52 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
rustPlatform,
|
|
fetchFromGitHub,
|
|
pkg-config,
|
|
openssl,
|
|
protobuf,
|
|
stdenv,
|
|
}:
|
|
|
|
rustPlatform.buildRustPackage rec {
|
|
pname = "svix-server";
|
|
version = "1.73.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "svix";
|
|
repo = "svix-webhooks";
|
|
rev = "v${version}";
|
|
hash = "sha256-Gx8fvOkoTznj3tvJOhn6lVRlf0lWcAgBm9oE7L8pxTs=";
|
|
};
|
|
|
|
sourceRoot = "${src.name}/server";
|
|
|
|
cargoHash = "sha256-LQefLUSoKQOeAgqhb/HT554j/xEaNvnKzmCOKHTRXq8=";
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
buildInputs = [
|
|
openssl
|
|
protobuf
|
|
];
|
|
|
|
# needed for internal protobuf c wrapper library
|
|
PROTOC = "${protobuf}/bin/protoc";
|
|
PROTOC_INCLUDE = "${protobuf}/include";
|
|
|
|
OPENSSL_NO_VENDOR = 1;
|
|
|
|
# disable tests because they require postgres and redis to be running
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
mainProgram = "svix-server";
|
|
description = "Enterprise-ready webhooks service";
|
|
homepage = "https://github.com/svix/svix-webhooks";
|
|
changelog = "https://github.com/svix/svix-webhooks/releases/tag/v${version}";
|
|
license = lib.licenses.mit;
|
|
maintainers = with lib.maintainers; [ techknowlogick ];
|
|
broken = stdenv.hostPlatform.isx86_64 && stdenv.hostPlatform.isDarwin; # aws-lc-sys currently broken on darwin x86_64
|
|
};
|
|
}
|