Files
nixpkgs/pkgs/by-name/sv/svix-server/package.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

52 lines
1.2 KiB
Nix

{
lib,
rustPlatform,
fetchFromGitHub,
pkg-config,
openssl,
protobuf,
stdenv,
}:
rustPlatform.buildRustPackage rec {
pname = "svix-server";
version = "1.76.1";
src = fetchFromGitHub {
owner = "svix";
repo = "svix-webhooks";
rev = "v${version}";
hash = "sha256-9ClWC/OHdijmQzKig/o6WhJ9mjlE6pLwvrRKzuO0l3g=";
};
sourceRoot = "${src.name}/server";
cargoHash = "sha256-fOUPaU/1+FvL9hSzWQVouAXmCjI6ppOjJqtgM4+cXf8=";
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
};
}