Skip to content

Commit 9b8302f

Browse files
authored
ocsp-server: init at 0.4.1 (#389763)
2 parents ababf98 + 5af6971 commit 9b8302f

File tree

1 file changed

+60
-0
lines changed

1 file changed

+60
-0
lines changed
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
{
2+
lib,
3+
rustPlatform,
4+
fetchFromGitHub,
5+
pkg-config,
6+
openssl,
7+
perl,
8+
libmysqlclient,
9+
mariadb,
10+
postgresql,
11+
mbedtls,
12+
versionCheckHook,
13+
nix-update-script,
14+
}:
15+
16+
rustPlatform.buildRustPackage (finalAttrs: {
17+
pname = "ocsp-server";
18+
version = "0.4.1";
19+
20+
src = fetchFromGitHub {
21+
owner = "DorianCoding";
22+
repo = "OCSP-server";
23+
tag = "v${finalAttrs.version}";
24+
hash = "sha256-xYZ2NM+U7ZW5xDKVUhT+s66i/d7zaDLBbSbr6TDOG0o=";
25+
};
26+
27+
useFetchCargoVendor = true;
28+
cargoHash = "sha256-RFrm2dtjJ2VvOg8ee54ps8MuWgsV0kd9rhpzOFTem2k=";
29+
30+
nativeBuildInputs = [
31+
pkg-config
32+
perl
33+
libmysqlclient
34+
];
35+
36+
buildInputs = [
37+
openssl
38+
mariadb
39+
postgresql
40+
mbedtls
41+
];
42+
43+
nativeInstallCheckInputs = [
44+
versionCheckHook
45+
];
46+
versionCheckProgramArg = [ "--version" ];
47+
doInstallCheck = true;
48+
49+
passthru = {
50+
updateScript = nix-update-script { };
51+
};
52+
53+
meta = {
54+
description = "OCSP responder fetching certificate status from MySQL/MariaDB database";
55+
homepage = "https://github.com/DorianCoding/OCSP-server";
56+
license = lib.licenses.gpl3Only;
57+
maintainers = with lib.maintainers; [ liberodark ];
58+
mainProgram = "ocsp-server";
59+
};
60+
})

0 commit comments

Comments
 (0)