Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / by-name / sv / svix-server / package.nix
blobe7de972488e2e0dae2d262235e833a0631810f31
1 { lib, rustPlatform, fetchFromGitHub, pkg-config, openssl, protobuf, stdenv
2 , darwin }:
4 rustPlatform.buildRustPackage rec {
5   pname = "svix-server";
6   version = "1.13.0";
8   src = fetchFromGitHub {
9     owner = "svix";
10     repo = "svix-webhooks";
11     rev = "v${version}";
12     hash = "sha256-6758ej7bTvwZPWifl239rQMazM8uw+Y4+3EbjE8XsTg=";
13   };
15   sourceRoot = "source/server";
17   cargoLock = {
18     lockFile = ./Cargo.lock;
19     outputHashes = {
20       "aide-0.10.0" = "sha256-hUUer5D6OA4F0Co3JgygY3g89cKIChFest67ABIX+4M=";
21       "hyper-0.14.23" = "sha256-7MBCAjKYCdDbqCmYg3eYE74h7K7yTjfVoo0sjxr4g/s=";
22     };
23   };
25   nativeBuildInputs = [ pkg-config ];
27   buildInputs = [
28     openssl
29     protobuf
30   ] ++ lib.optionals stdenv.isDarwin [
31     darwin.apple_sdk.frameworks.CoreServices
32     darwin.apple_sdk.frameworks.Security
33     darwin.apple_sdk.frameworks.SystemConfiguration
34   ];
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
43   doCheck = false;
45   meta = with lib; {
46     mainProgram = "svix-server";
47     description = "The enterprise-ready webhooks service";
48     homepage = "https://github.com/svix/svix-webhooks";
49     changelog =
50       "https://github.com/svix/svix-webhooks/releases/tag/v${version}";
51     license = licenses.mit;
52     maintainers = with maintainers; [ techknowlogick ];
53   };