File tree Expand file tree Collapse file tree 1 file changed +60
-0
lines changed
pkgs/by-name/oc/ocsp-server Expand file tree Collapse file tree 1 file changed +60
-0
lines changed Original file line number Diff line number Diff line change 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+ } )
You can’t perform that action at this time.
0 commit comments