File tree Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Expand file tree Collapse file tree 1 file changed +54
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ lib ,
3+ rustPlatform ,
4+ fetchFromGitHub ,
5+ pkg-config ,
6+ zstd ,
7+ versionCheckHook ,
8+ nix-update-script ,
9+ } :
10+
11+ rustPlatform . buildRustPackage ( finalAttrs : {
12+ pname = "ferron" ;
13+ version = "1.0.0" ;
14+
15+ src = fetchFromGitHub {
16+ owner = "ferronweb" ;
17+ repo = "ferron" ;
18+ tag = finalAttrs . version ;
19+ hash = "sha256-kw2Ffl5KB3urg5h/ejbW+WxYLpNrxIjPy0levZPgRoo=" ;
20+ } ;
21+
22+ useFetchCargoVendor = true ;
23+ cargoHash = "sha256-uPzEz72/3huigY8moYX5ztRZ0Uaye+GN7V8vKKklPkY=" ;
24+
25+ nativeBuildInputs = [
26+ pkg-config
27+ ] ;
28+
29+ buildInputs = [
30+ zstd
31+ ] ;
32+
33+ env = {
34+ ZSTD_SYS_USE_PKG_CONFIG = true ;
35+ } ;
36+
37+ nativeInstallCheckInputs = [
38+ versionCheckHook
39+ ] ;
40+ versionCheckProgramArg = "--version" ;
41+ doInstallCheck = true ;
42+
43+ passthru = {
44+ updateScript = nix-update-script { } ;
45+ } ;
46+
47+ meta = {
48+ description = "Fast, memory-safe web server written in Rust" ;
49+ homepage = "https://github.com/ferronweb/ferron" ;
50+ license = lib . licenses . mit ;
51+ maintainers = with lib . maintainers ; [ GaetanLepage ] ;
52+ mainProgram = "ferron" ;
53+ } ;
54+ } )
You can’t perform that action at this time.
0 commit comments