-
Notifications
You must be signed in to change notification settings - Fork 3
/
vercel-log-drain.nix
46 lines (41 loc) · 1.14 KB
/
vercel-log-drain.nix
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# [vercel-log-drain](https://github.com/dacbd/vercel-log-drain) is a log-drain for vercel that supports multiple drivers to ship logs out to various sources
{ lib
, rustPlatform
, fetchFromGitHub
, pkg-config
, openssl
, stdenv
, darwin
}:
let
osSpecific =
if stdenv.isDarwin then
(with darwin.apple_sdk.frameworks; [
Security
SystemConfiguration
]) else [ ];
in
rustPlatform.buildRustPackage {
pname = "vercel-log-drain";
version = "0.0.3";
src = fetchFromGitHub {
owner = "dacbd";
repo = "vercel-log-drain";
rev = "04d002ce54dba769316f649185468de4cf1f7d81";
hash = "sha256-NkSU8tCuHdS6UXyeSuYjLMDLC7aARon+bfERWdkQz9I=";
};
cargoHash = "sha256-ACwAfTZVyl28N14sJuxSRoKj7LvEtKf/i81kEVCMfyc=";
nativeBuildInputs = [
pkg-config
];
buildInputs = [
openssl
] ++ osSpecific;
meta = with lib; {
description = "A simple log-drain you can deploy to export log messages from Vercel to one or more outputs";
homepage = "https://github.com/dacbd/vercel-log-drain";
license = licenses.mit;
maintainers = with maintainers; [ jpetrucciani ];
mainProgram = "vercel-log-drain";
};
}