1 { lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, protobuf, stdenv
4 rustPlatform.buildRustPackage rec {
8 src = fetchFromGitHub {
10 repo = "svix-webhooks";
12 hash = "sha256-6758ej7bTvwZPWifl239rQMazM8uw+Y4+3EbjE8XsTg=";
15 sourceRoot = "source/server";
18 lockFile = ./Cargo.lock;
20 "aide-0.10.0" = "sha256-hUUer5D6OA4F0Co3JgygY3g89cKIChFest67ABIX+4M=";
21 "hyper-0.14.23" = "sha256-7MBCAjKYCdDbqCmYg3eYE74h7K7yTjfVoo0sjxr4g/s=";
25 nativeBuildInputs = [ pkg-config ];
30 ] ++ lib.optionals stdenv.isDarwin [
31 darwin.apple_sdk.frameworks.CoreServices
32 darwin.apple_sdk.frameworks.Security
33 darwin.apple_sdk.frameworks.SystemConfiguration
36 # needed for internal protobuf c wrapper library
37 PROTOC = "${protobuf}/bin/protoc";
38 PROTOC_INCLUDE = "${protobuf}/include";
40 OPENSSL_NO_VENDOR = 1;
42 # disable tests because they require postgres and redis to be running
46 mainProgram = "svix-server";
47 description = "The enterprise-ready webhooks service";
48 homepage = "https://github.com/svix/svix-webhooks";
50 "https://github.com/svix/svix-webhooks/releases/tag/v${version}";
51 license = licenses.mit;
52 maintainers = with maintainers; [ techknowlogick ];