blob: 798bbdd7383877ba14b1f86659a80ee2e66b4009 (
about) (
plain)
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
|
{
lib,
fetchFromGitHub,
rustPlatform,
pkg-config,
openssl,
versionCheckHook,
nix-update-script,
nixosTests,
}:
rustPlatform.buildRustPackage (finalAttrs: {
pname = "agate";
version = "3.3.17";
__darwinAllowLocalNetworking = true;
src = fetchFromGitHub {
owner = "mbrubeck";
repo = "agate";
tag = "v${finalAttrs.version}";
hash = "sha256-zT56JGP2SfOqLL/sLxo3PHnbAvLI+lifmCvLdPwzCZM=";
};
cargoHash = "sha256-vemmO7xYf83rBNEvJKaq5CjobG1LUxt7M5zeQegTUmM=";
nativeBuildInputs = [ pkg-config ];
buildInputs = [ openssl ];
nativeInstallCheckInputs = [ versionCheckHook ];
doInstallCheck = true;
passthru = {
tests = {
inherit (nixosTests) agate;
};
updateScript = nix-update-script { };
};
meta = {
homepage = "https://github.com/mbrubeck/agate";
changelog = "https://github.com/mbrubeck/agate/releases/tag/v${finalAttrs.version}";
description = "Very simple server for the Gemini hypertext protocol";
mainProgram = "agate";
longDescription = ''
Agate is a server for the Gemini network protocol, built with the Rust
programming language. Agate has very few features, and can only serve
static files. It uses async I/O, and should be quite efficient even when
running on low-end hardware and serving many concurrent requests.
'';
license = with lib.licenses; [
asl20
# or
mit
];
maintainers = with lib.maintainers; [ jk ];
};
})
|