Skip to content

Commit 65e8af0

Browse files
authored
ferron: init at 1.0.0 (#398547)
2 parents c75287f + ce43e48 commit 65e8af0

File tree

1 file changed

+54
-0
lines changed

1 file changed

+54
-0
lines changed

pkgs/by-name/fe/ferron/package.nix

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+
})

0 commit comments

Comments
 (0)